changeset 87afdc7e5f95 in modules/sale_complaint:default
details:
https://hg.tryton.org/modules/sale_complaint?cmd=changeset&node=87afdc7e5f95
description:
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
diffstat:
complaint.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 77d2cd2dda43 -r 87afdc7e5f95 complaint.py
--- a/complaint.py Sun Jul 04 17:54:48 2021 +0200
+++ b/complaint.py Mon Aug 16 23:13:11 2021 +0200
@@ -604,6 +604,7 @@
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