changeset b7473de967d6 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=b7473de967d6
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
diffstat:
inventory.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 115fe695b878 -r b7473de967d6 inventory.py
--- a/inventory.py Mon Nov 02 16:13:21 2020 +0100
+++ b/inventory.py Mon Nov 23 23:36:02 2020 +0100
@@ -361,7 +361,8 @@
'on_change_with_inventory_date',
searcher='search_inventory_date')
inventory_state = fields.Function(
- fields.Selection('get_inventory_states', "Inventory State"),
+ fields.Selection('get_inventory_states', "Inventory State",
+ depends=['inventory']),
'on_change_with_inventory_state')
@classmethod