[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#67162

X-original-commit: 2d7f45e76607736bcc4f37bec480967ae2b373d7
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
Laurent Smet
2021-03-03 14:51:25 +00:00
parent 212b107fa1
commit bb839c75cb
-1
View File
@@ -585,7 +585,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]})