changeset ab07e6eaaad5 in modules/product_kit:default
details:
https://hg.tryton.org/modules/product_kit?cmd=changeset&node=ab07e6eaaad5
description:
Use purchase attribute on purchase components move's origin_name
issue10458
review363431002
diffstat:
stock.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 61276e02acc9 -r ab07e6eaaad5 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):