changeset c4daa79bff00 in modules/purchase_amendment:5.4
details:
https://hg.tryton.org/modules/purchase_amendment?cmd=changeset;node=c4daa79bff00
description:
Set description field from original line description
issue9178
review307441002
(grafted from 871b4daef037e32935096eac23948481a6b6a2d2)
diffstat:
purchase.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 82d5f1e64339 -r c4daa79bff00 purchase.py
--- a/purchase.py Sat Apr 04 16:42:32 2020 +0200
+++ b/purchase.py Fri Apr 24 22:09:58 2020 +0200
@@ -357,8 +357,9 @@
self.quantity = self.line.quantity
self.unit = self.line.unit
self.unit_price = self.line.unit_price
+ self.description = self.line.description
else:
- self.product = self.product_supplier = None
+ self.product = self.product_supplier = self.description = None
self.quantity = self.unit = self.unit_price = None
@fields.depends('party')