From 79e83beaadbd6d597a092bbfb68e3e7482b50471 Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Fri, 24 Apr 2020 22:09:58 +0200 Subject: [PATCH] Set description field from original line description issue9178 review307441002 --- purchase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index f99974e763..eb6827f761 100644 --- a/purchase.py +++ b/purchase.py @@ -357,8 +357,9 @@ class AmendmentLine(ModelSQL, ModelView): 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')