diff options
| author | Laurent Smet <las@odoo.com> | 2021-03-03 08:22:41 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2021-03-03 08:22:41 +0000 |
| commit | 2d7f45e76607736bcc4f37bec480967ae2b373d7 (patch) | |
| tree | bf6626c8b662ac8beeee55d465d4aef35af63301 | |
| parent | 8cd0264d6dc8d8df19d1be4d504fb230b6eea3c7 (diff) | |
[FIX] hr_expense: Don't write 'payment_id' on aml
This line was an hack to manage the custom register payment wizard of hr_expense.
Since this wizard is gone and 'payment_id' is a related stored field in account.move.line, we should not write such data explicitely.
closes odoo/odoo#67127
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
| -rw-r--r-- | addons/hr_expense/models/hr_expense.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/hr_expense/models/hr_expense.py b/addons/hr_expense/models/hr_expense.py index 3f15ab5f891..3991447c96b 100644 --- a/addons/hr_expense/models/hr_expense.py +++ b/addons/hr_expense/models/hr_expense.py @@ -541,7 +541,6 @@ Or send your receipts at <a href="mailto:%(email)s?subject=Lunch%%20with%%20cust 'amount': abs(total_amount_currency) if different_currency else abs(total_amount), 'ref': expense.name, }) - move_line_dst['payment_id'] = payment.id # link move lines to move, and move to expense sheet move.write({'line_ids': [(0, 0, line) for line in move_line_values]}) |
