openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #20180
[Bug 1068038] Re: hr_expense: generated invoice may use wrong accounts in a multi-company context
In my branch I made the company field read-only. And you are only
allowed to generate accounting entries when the companies of the user
and the expense correspond.
--
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