Keep stock moves when credit or correct an invoice

issue9140
review273041002
This commit is contained in:
Cédric Krier committed 2020-03-28 16:51:52 +01:00
1 parent 10290ed010
commit 2c2ac954f5
1 file changed
-2
-2
View File
@@ -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: