odoo/odoo#159911
Created by Andrea Grazioso (agr)
Blocked
- Merge method
- Review
-
CI
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:16.0-opw-3800134-fix-agr
- head
- 6cbe3545c2751562b46c1c8546c65cf56d1870b3
- target
- 16.0
[FIX] hr_expense: bill partner child contact
Open a [DEMO] employee record
Set the Bank Account Number under 'Private Information'
Open the contact (res.partner) of [DEMO]
Set the parent contact to be the current company
Add a bank account on the contact for current company
Go to Expenses and create a new expense for [DEMO], with Paid By "Employee (to reimburse)"
Create Report, Submit Report, Approve, then Post Journal Entries.
Issue: On the created bill, partner will be the parent company and also
the bank account will be the one of the parent company.
When registering payment from:
- bill: the user will see the bank account of the company
- expense: the user will see the bank account of the employee
opw-3800134