openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26311
[Bug 704469] Re: Price.type currency isn't taken into computation #analytic #accounting : this is quite dangerous. Cost = 50EUR -> If company CHF => 50CHF :(
** Tags added: invoicing
--
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/704469
Title:
Price.type currency isn't taken into computation #analytic #accounting
: this is quite dangerous. Cost = 50EUR -> If company CHF => 50CHF :(
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Hi,
Given :
- My company is in CHF
- My price.type is in EUR
- I record an analytic line with any product (ex: cost 30, which is supposed to be in EUR)
I should have an Amount in the analytic line = 30 EUR * RATE ~= 45 CHF
!!!
This is quite important in multi-company context. Thanks to have a
look.
Little helps:
In the on_change_unit_amount of analytic_line, you should give the
currency in the context of price_get function:
context['currency_id']=company_obj.browse(cr,uid,company_id).currency_id.id
amount_unit = prod.price_get(pricetype.field, context=ctx)[prod.id]
Regards,
Joël
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/704469/+subscriptions