Price.type currency isn't taken into computation #analytic #accounting : this is quite dangerous. Cost = 50EUR -> If company CHF => 50CHF :(
Bug #704469 reported by
Joël Grand-Guillaume @ camptocamp
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 3 |
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_
context[
amount_unit = prod.price_
Regards,
Joël
Related branches
lp:~openerp-dev/openobject-addons/trunk-bug-704469-ssh
Ready for review
for merging
into
lp:openobject-addons
- OpenERP Core Team: Pending requested
-
Diff: 11 lines (+1/-0)1 file modifiedaccount/account_analytic_line.py (+1/-0)
affects: | account-banking → openobject-addons |
Changed in openobject-addons: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
importance: | Undecided → Low |
tags: | added: invoicing |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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