changeset 3a119dcca1c8 in modules/stock_lot:5.6
details: https://hg.tryton.org/modules/stock_lot?cmd=changeset;node=3a119dcca1c8
description:
        Use inventory location lost_found location to test lot required

        issue9821
        review300881002
        (grafted from 02f64db78e7726030a590f2289821c7237191142)
diffstat:

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

diffs (12 lines):

diff -r c745fca3e952 -r 3a119dcca1c8 stock.py
--- a/stock.py  Mon May 04 12:31:42 2020 +0200
+++ b/stock.py  Thu Nov 12 09:28:22 2020 +0100
@@ -259,7 +259,7 @@
         if isinstance(self.search.search, Product):
             product = self.search.search
             if product.lot_is_required(
-                    inventory.location, inventory.lost_found):
+                    inventory.location, inventory.location.lost_found_used):
                 raise RequiredValidationError(
                     gettext('stock_lot.msg_only_lot',
                         product=product.rec_name))

Reply via email to