openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #15371
[Bug 1048213] Re: create invoice: company used for invoice line must be the invoice's company
** Branch linked: lp:~sbi/openobject-addons/trunk-invoice-better-
multicompany-defaults
--
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/1048213
Title:
create invoice: company used for invoice line must be the invoice's
company
Status in OpenERP Addons (modules):
New
Bug description:
Hello,
When creating and invoice in a multi company context, the company can
be selected on the invoice (in the other info tab). The company can be
derived from the selected journal (see also lp:1047884).
When creating invoice lines, the company used for deriving accounts
and taxes from the selected product must be the invoice's company and
not the user's company.
This applies to 6.1 and trunk
How to reproduce:
1. create two companies A and B
2. set the user preferences to company B
3. create a customer invoice and change the journal and company (in other info) to company A
4. create an invoice line -> in trunk the default account is an account of company B (the user default), it should be an account of company A, since the invoice is for company A
5. select a product -> the proposed account and taxes are for company B (the user default), it should be an account and taxes of company A, since the invoice is for company A
I'll attach a merge proposal.
Best regards,
-sbi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1048213/+subscriptions
References