c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #13188
[Bug 704469] Re: Price.type currency isn't taken into computation #analytic #accounting : this is quite dangerous. Cost = 50EUR -> If company CHF => 50CHF :(
Hello Joel,
i'm sorry but i don't understand how you're having that bug to occur: if
i'm making an invoice in € and my company currency is in CHF, it will
create analytic lines in CHF with the good amount as expected. I don't
understand this price.type you're talking about, it seems to me it is
some rest of deprecated code we reverted some time ago...
but anyway, tahnks for the contribution ;-)
Quentin
** Changed in: openobject-addons
Status: New => Invalid
--
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/704469
Title:
Price.type currency isn't taken into computation #analytic #accounting
: this is quite dangerous. Cost = 50EUR -> If company CHF => 50CHF :(
Status in OpenObject Addons Modules:
Invalid
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
References