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

        issue9821
        review300881002
diffstat:

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

diffs (12 lines):

diff -r 3c260dd56899 -r 02f64db78e77 stock.py
--- a/stock.py  Mon Nov 02 16:14:53 2020 +0100
+++ b/stock.py  Thu Nov 12 09:28:22 2020 +0100
@@ -303,7 +303,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