From 2c2ac954f54e5df8d6ef59417c73b4899258badb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Mar 2020 16:51:52 +0100 Subject: [PATCH] Keep stock moves when credit or correct an invoice issue9140 review273041002 --- complaint.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/complaint.py b/complaint.py index 568d7f80eb..3de4dea4be 100644 --- a/complaint.py +++ b/complaint.py @@ -450,8 +450,6 @@ class Action(ModelSQL, ModelView): for invoice_line in invoice_lines: credit_line = invoice_line._credit() credit_lines.append(credit_line) - # Remove product as it is not a return - credit_line.product = None credit_line.origin = self.complaint if isinstance(self.complaint.origin, Line): if self.quantity is not None: