diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-01-07 08:39:10 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-01-07 10:53:02 +0000 |
| commit | 8f71f772c76d9b8e2bfd5fb85f78552a516800c4 (patch) | |
| tree | 06897804af0b37a45a84ee3863e04995e7563e39 /addons/account/wizard | |
| parent | 2e861cc8ee39fc2681dd9fb2fe13f45ed2cec5a1 (diff) | |
[FIX] account: incorrect Payment Reference
- Create a customer invoice.
- Validate it.
- A payment reference (`invoice_payment_ref`) is given.
- Refund with option 'Full refund and new draft invoice'
The `invoice_payment_ref` field is kept on the draft invoice, while we
want a new reference since it is a new invoice.
opw-2159166
closes odoo/odoo#42832
X-original-commit: 77c28421e6c7711e3d3c39dbece4e2bfa0b26b5c
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/account/wizard')
| -rw-r--r-- | addons/account/wizard/account_move_reversal.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/account/wizard/account_move_reversal.py b/addons/account/wizard/account_move_reversal.py index 67683ac44b5..48597fe61f1 100644 --- a/addons/account/wizard/account_move_reversal.py +++ b/addons/account/wizard/account_move_reversal.py @@ -73,7 +73,6 @@ class AccountMoveReversal(models.TransientModel): moves_vals_list = [] for move in moves.with_context(include_business_fields=True): moves_vals_list.append(move.copy_data({ - 'invoice_payment_ref': move.name, 'date': self.date or move.date, })[0]) new_moves = self.env['account.move'].create(moves_vals_list) |
