changeset 79042b153b75 in modules/stock:5.0
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=79042b153b75
description:
Add missing inventory to depends of inventory_state
It is needed to have the inventory field to correctly compute the
inventory_state value.
issue9820
review300911002
(grafted from b7473de967d65966f9527f0ec8a8138830cb2934)
diffstat:
inventory.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 424af36802c2 -r 79042b153b75 inventory.py
--- a/inventory.py Wed Jun 03 22:17:12 2020 +0200
+++ b/inventory.py Mon Nov 23 23:36:02 2020 +0100
@@ -310,7 +310,8 @@
},
depends=_depends)
inventory_state = fields.Function(
- fields.Selection(INVENTORY_STATES, 'Inventory State'),
+ fields.Selection(INVENTORY_STATES, 'Inventory State',
+ depends=['inventory']),
'on_change_with_inventory_state')
@classmethod