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
This commit is contained in:
Cédric Krier committed 2021-08-16 23:13:11 +02:00
1 parent ec01f5c0f2
commit f966ff5159
1 file changed
+1
+1
View File
@@ -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