openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #20181
[Bug 1068038] Re: hr_expense: generated invoice may use wrong accounts in a multi-company context
Hello Josse,
This last change (forcing user and expense company to be the same) are
too restrictive. It is indeed frequent in multi-company scnearios to
have a user of one company submitting an expense note for another
company (for users working for different companies, for instance).
Best regards,
-sbi
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1068038
Title:
hr_expense: generated invoice may use wrong accounts in a multi-
company context
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Hello,
When generating invoices from expenses, the invoice sometimes uses
wrong accounts when the use generating the expense is from another
company than the expense's company.
I reproduced with 6.1, but it probably applies to trunk too since the
code has not changed.
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 B (correct), but using accounts (payable, expense) from company A (wrong)
- expected result: the invoice should be with accounts of company A
I link a merge proposal.
Best regards,
-sbi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1068038/+subscriptions
References