changeset fa41151c466c in modules/account_invoice:5.8 details: https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=fa41151c466c description: Do not copy invoice payments when copying move lines
issue10502 review367121002 (grafted from 24ecdc76c60aedbd4f62501e46338371b9fabce1) diffstat: account.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diffs (16 lines): diff -r 824cb7eede7c -r fa41151c466c account.py --- a/account.py Wed Sep 01 22:59:22 2021 +0200 +++ b/account.py Fri Oct 29 17:03:20 2021 +0200 @@ -221,6 +221,12 @@ 'account.invoice.line', 'account.invoice.tax'] @classmethod + def copy(cls, lines, default=None): + default = {} if default is None else default.copy() + default.setdefault('invoice_payments', None) + return super().copy(lines, default=default) + + @classmethod def get_invoice_payment(cls, lines, name): pool = Pool() InvoicePaymentLine = pool.get('account.invoice-account.move.line')