changeset 594f5c141aaa in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=594f5c141aaa
description:
        Only check if expected_quantity has changed

        Since rev 7166c43434f7, the quantity field is no more filled.

        issue8433
        review285371002
diffstat:

 inventory.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 38e2a76db719 -r 594f5c141aaa inventory.py
--- a/inventory.py      Sun Aug 18 19:22:43 2019 +0200
+++ b/inventory.py      Mon Sep 02 18:26:02 2019 +0200
@@ -460,7 +460,7 @@
         '''
         values = {}
         # if nothing changed, no update
-        if self.quantity == self.expected_quantity == quantity:
+        if self.expected_quantity == quantity:
             return values
         values['expected_quantity'] = quantity
         return values

Reply via email to