changeset 871b4daef037 in modules/purchase_amendment:default
details: 
https://hg.tryton.org/modules/purchase_amendment?cmd=changeset;node=871b4daef037
description:
        Set description field from original line description

        issue9178
        review307441002
diffstat:

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

diffs (14 lines):

diff -r 5efad7656208 -r 871b4daef037 purchase.py
--- a/purchase.py       Thu Mar 19 19:08:15 2020 +0100
+++ 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')

Reply via email to