Skip to content
Snippets Groups Projects
Commit 066c70e4 authored by Dylan Kiss (dyki)'s avatar Dylan Kiss (dyki)
Browse files

[FIX] hr_expense: set the expense account and employee on generated move lines


Currently, when posting accounting entries from an expense report, the accounts set on the expense entries were not taken over in the account move lines. Also, the employee was not set as the vendor of the purchase receipt (account move).

This PR makes sure that both the accounts on the expenses, as well as the vendor (employee) is set on the account move created from an expense report.
Tests added as well.

closes odoo/odoo#102570

Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
parent 2618d1b7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment