changeset c0ea635e6329 in modules/stock:5.4
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=c0ea635e6329
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 031900f42919 -r c0ea635e6329 inventory.py
--- a/inventory.py      Wed Jun 03 22:16:30 2020 +0200
+++ b/inventory.py      Mon Nov 23 23:36:02 2020 +0100
@@ -327,7 +327,8 @@
         depends=_depends,
         help="The inventory the line belongs to.")
     inventory_state = fields.Function(
-        fields.Selection(INVENTORY_STATES, 'Inventory State'),
+        fields.Selection(INVENTORY_STATES, 'Inventory State',
+        depends=['inventory']),
         'on_change_with_inventory_state')
 
     @classmethod

Reply via email to