c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26243
[Bug 796363] Re: [6.0] hr_expense: invoice ignores employee company
Hi again,
I attach a slightly improved patch: the company_id used to create the
invoice is taken from the expense instead of the expense employee. In
turn, the company_id on the expense is defaulted to the employee
company. This creates a sensible default, while allowing the user to
create an expense for another company than its own.
Best regards,
-sbi
** Patch added: "expense_invoice_multi_company.patch"
https://bugs.launchpad.net/openobject-addons/+bug/796363/+attachment/2166865/+files/expense_invoice_multi_company.patch
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/796363
Title:
[6.0] hr_expense: invoice ignores employee company
Status in OpenERP Modules (addons):
New
Bug description:
Hi,
When creating an invoice from an expense (the last step in hr_expense
workflow), the employee company is ignored.
How to reproduce:
- create 2 companies A and B
- create an expense for an employee of company B
- approve and invoice the expense with the user where company preference is set to A
- result: the invoice is created for company A
- expected result: the invoice should be created for company B which is the company of the employee submitting the expense, not the default company of the user creating the invoice
I attach a patch.
Best regards,
-sbi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/796363/+subscriptions
References