diff --git a/modules/purchase/CHANGELOG b/modules/purchase/CHANGELOG index c43674c923..09708de0eb 100644 --- a/modules/purchase/CHANGELOG +++ b/modules/purchase/CHANGELOG @@ -1,3 +1,4 @@ +* Add quotation expiration date Version 7.4.0 - 2024-11-04 -------------------------- diff --git a/modules/purchase/purchase.py b/modules/purchase/purchase.py index ac2fc25b46..3c0955e72c 100644 --- a/modules/purchase/purchase.py +++ b/modules/purchase/purchase.py @@ -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']), diff --git a/modules/purchase/view/purchase_form.xml b/modules/purchase/view/purchase_form.xml index 5604e30ff0..1481998852 100644 --- a/modules/purchase/view/purchase_form.xml +++ b/modules/purchase/view/purchase_form.xml @@ -18,18 +18,23 @@ this repository contains the full copyright notices and license terms. -->