Files
tryton/view/purchase_request_form.xml
T
Cédric Krier 29c21f9d06 Allow request without product
The purchase line does not required to have a product, so the purchase request
should behave the same. A description field is added to be used instead of the
product name as purchase line description.
The unit price is only computed if it is not yet set and if there is a product.

issue5670
review27431002
2016-07-08 10:47:48 +02:00

45 lines
1.4 KiB
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<separator string="Product Info" colspan="4" id="product"/>
<label name="product"/>
<field name="product"/>
<newline/>
<label name="description"/>
<field name="description" colspan="3" yexpand="0"/>
<label name="quantity"/>
<field name="quantity"/>
<label name="uom"/>
<field name="uom"/>
<label name="computed_quantity"/>
<field name="computed_quantity"/>
<label name="computed_uom"/>
<field name="computed_uom"/>
<separator string="Supply Info" colspan="4" id="supply"/>
<label name="party"/>
<field name="party"/>
<newline/>
<label name="warehouse"/>
<field name="warehouse"/>
<label name="company"/>
<field name="company"/>
<label name="purchase_date"/>
<field name="purchase_date"/>
<label name="supply_date"/>
<field name="supply_date"/>
<label name="purchase"/>
<field name="purchase"/>
<label name="stock_level"/>
<field name="stock_level"/>
<label name="origin"/>
<field name="origin"/>
<label name="state"/>
<field name="state"/>
<group col="1" colspan="2" id="buttons">
<button name="handle_purchase_cancellation_exception"
string="Handle Purchase Cancellation"
icon="tryton-go-next"/>
</group>
</form>