From f966ff5159ba87e1497a5db4027dff2ba5b1fc8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 16 Aug 2021 23:13:11 +0200 Subject: [PATCH] Do not copy taxes The taxes are recomputed any way so it is better to avoid to have to update or delete them. issue10636 review342831005 --- complaint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/complaint.py b/complaint.py index 9e08b5e262..a0aa611670 100644 --- a/complaint.py +++ b/complaint.py @@ -604,6 +604,7 @@ class Action(ModelSQL, ModelView): with Transaction().set_context(_account_invoice_correction=True): credit_note, = Invoice.copy([invoice], default={ 'lines': [], + 'taxes': [], }) # Copy each line one by one to get negative and positive lines # following each other