-
- Downloads
[FIX] account: copy the invoice_date_due when duplicating an invoice
Steps to reproduce the bug: - Go to Accounting - Create an invoice: - select a `invoice_payment_term_id` - Add product on “account.move.live” - Save and duplicate it. Problem: The `invoice_payment_term_id` field will be duplicated on the second invoice, but not the `invoice_date_due` field Solution: The `invoice_date_due` field is set in the `_recompute_payment_terms_lines()` function when adding an `account.move.line`. As in the duplicate invoice we also have an `account.move.line` we can therefore call this function so that the field is set https://github.com/odoo/odoo/blob/14.0/addons/account/models/account_move.py#L1043 opw- 2628333 closes odoo/odoo#75476 Signed-off-by:Laurent Smet <smetl@users.noreply.github.com>
Loading
Please register or sign in to comment