Add missing purchase_date on some on_change
(transplanted from 77f83b533286699cd46d3a9b8471fa5ab75633f2)
This commit is contained in:
1 parent
94b2610103
commit
2aa5ae0dec
1 file changed
+4
-2
+4
-2
@@ -855,7 +855,8 @@ class PurchaseLine(ModelSQL, ModelView):
|
||||
'required': Eval('type') == 'line',
|
||||
'readonly': ~Eval('_parent_purchase'),
|
||||
}, on_change=['product', 'quantity', 'unit',
|
||||
'_parent_purchase.currency', '_parent_purchase.party'],
|
||||
'_parent_purchase.currency', '_parent_purchase.party',
|
||||
'_parent_purchase.purchase_date'],
|
||||
depends=['unit_digits', 'type'])
|
||||
unit = fields.Many2One('product.uom', 'Unit',
|
||||
states={
|
||||
@@ -879,7 +880,8 @@ class PurchaseLine(ModelSQL, ModelView):
|
||||
'invisible': Eval('type') != 'line',
|
||||
'readonly': ~Eval('_parent_purchase'),
|
||||
}, on_change=['product', 'unit', 'quantity', 'description',
|
||||
'_parent_purchase.party', '_parent_purchase.currency'],
|
||||
'_parent_purchase.party', '_parent_purchase.currency',
|
||||
'_parent_purchase.purchase_date'],
|
||||
context={
|
||||
'locations': If(Bool(Eval('_parent_purchase', {}).get(
|
||||
'warehouse')),
|
||||
|
||||
Reference in new issue
Block a user