changeset 8c0c6544b523 in modules/stock_lot:default
details: https://hg.tryton.org/modules/stock_lot?cmd=changeset;node=8c0c6544b523
description:
        Get attribute from lot instead of product

        issue10107
        review359231002
diffstat:

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

diffs (12 lines):

diff -r 3d08a1207d55 -r 8c0c6544b523 stock.py
--- a/stock.py  Wed Feb 03 21:19:06 2021 +0100
+++ b/stock.py  Wed Feb 17 09:03:47 2021 +0100
@@ -205,7 +205,7 @@
         return lot.select(*columns)
 
     def get_lot(self, name):
-        value = getattr(self.product, name)
+        value = getattr(self.lot, name)
         if isinstance(value, Model):
             value = value.id
         return value

Reply via email to