changeset ef84aa64b8e6 in modules/product_kit:6.0
details: 
https://hg.tryton.org/modules/product_kit?cmd=changeset&node=ef84aa64b8e6
description:
        Use purchase attribute on purchase components move's origin_name

        issue10458
        review363431002
        (grafted from ab07e6eaaad584102592429e2f4b994076cdee58)
diffstat:

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

diffs (12 lines):

diff -r 6b05a01a8827 -r ef84aa64b8e6 stock.py
--- a/stock.py  Mon May 03 16:04:14 2021 +0200
+++ b/stock.py  Fri Jun 11 09:39:53 2021 +0200
@@ -151,7 +151,7 @@
         PurchaseLineComponent = pool.get('purchase.line.component')
         name = super().origin_name
         if isinstance(self.origin, PurchaseLineComponent):
-            name = self.origin.line.sale.rec_name
+            name = self.origin.line.purchase.rec_name
         return name
 
     def _compute_unit_price(self, unit_price):

Reply via email to