Add quotation expiration date to purchase
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Add quotation expiration date
|
||||
|
||||
Version 7.4.0 - 2024-11-04
|
||||
--------------------------
|
||||
|
||||
@@ -89,6 +89,11 @@ class Purchase(
|
||||
number = fields.Char("Number", readonly=True)
|
||||
reference = fields.Char("Reference")
|
||||
description = fields.Char('Description', size=None, states=_states)
|
||||
quotation_expire = fields.Date(
|
||||
"Quotation Expire",
|
||||
states={
|
||||
'invisible': ~Eval('state').in_(['draft', 'quotation']),
|
||||
})
|
||||
purchase_date = fields.Date('Purchase Date',
|
||||
states={
|
||||
'readonly': ~Eval('state').in_(['draft', 'quotation']),
|
||||
|
||||
@@ -18,18 +18,23 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="reference"/>
|
||||
<field name="reference"/>
|
||||
<notebook colspan="6">
|
||||
<page string="Purchase" id="purchase">
|
||||
<page string="Purchase" id="purchase" col="6">
|
||||
<label name="purchase_date"/>
|
||||
<field name="purchase_date"/>
|
||||
<label name="payment_term"/>
|
||||
<field name="payment_term"/>
|
||||
<label name="warehouse"/>
|
||||
<field name="warehouse"/>
|
||||
<label name="currency"/>
|
||||
<field name="currency"/>
|
||||
<field name="lines" colspan="4"
|
||||
view_ids="purchase.purchase_line_view_tree_sequence"/>
|
||||
<group col="2" colspan="2" id="states" yfill="1">
|
||||
|
||||
<label name="warehouse"/>
|
||||
<field name="warehouse"/>
|
||||
<label name="delivery_date"/>
|
||||
<field name="delivery_date"/>
|
||||
<label name="quotation_expire"/>
|
||||
<field name="quotation_expire"/>
|
||||
|
||||
<field name="lines" colspan="6" view_ids="purchase.purchase_line_view_tree_sequence"/>
|
||||
<group col="2" colspan="3" id="states" yfill="1">
|
||||
<label name="invoice_state"/>
|
||||
<field name="invoice_state"/>
|
||||
<label name="shipment_state"/>
|
||||
@@ -37,7 +42,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
</group>
|
||||
<group col="2" colspan="2" id="amount" yfill="1">
|
||||
<group col="2" colspan="3" id="amount" yfill="1">
|
||||
<label name="untaxed_amount" xalign="1.0" xexpand="1" xfill="0"/>
|
||||
<field name="untaxed_amount" xalign="1.0" xexpand="0"/>
|
||||
<label name="tax_amount" xalign="1.0" xexpand="1" xfill="0"/>
|
||||
@@ -51,10 +56,11 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="company"/>
|
||||
<label name="origin"/>
|
||||
<field name="origin"/>
|
||||
|
||||
<label name="invoice_method"/>
|
||||
<field name="invoice_method"/>
|
||||
<label name="delivery_date"/>
|
||||
<field name="delivery_date"/>
|
||||
<newline/>
|
||||
|
||||
<label name="quoted_by"/>
|
||||
<field name="quoted_by"/>
|
||||
<label name="confirmed_by"/>
|
||||
|
||||
@@ -5,6 +5,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="company" expand="1" optional="1"/>
|
||||
<field name="number" expand="1"/>
|
||||
<field name="reference" expand="1" optional="0"/>
|
||||
<field name="quotation_expire" optional="1"/>
|
||||
<field name="purchase_date" optional="0"/>
|
||||
<field name="party" expand="2"/>
|
||||
<field name="warehouse" optional="1"/>
|
||||
|
||||
Reference in New Issue
Block a user