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:
1 parent
ec01f5c0f2
commit
f966ff5159
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user