[sale_margin] purchase price is wrong

Bug #689924 reported by Sebastien LANGE - http://www.Syleam.fr
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

In version 6.0, the sale margin module get purchase price in product but forgot the convertion in currency of sale order's pricelist. So if customer has a different currency that user company, the margin calculation will be wrong.

Related branches

description: updated
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello,

I have tested your scenario with the latest code at my end. Fortunately it works fine. Would you please give me the steps in which you are making the difference in currencies of customer and user company. Here i have made the new price list for customer and default one for the company. I have attached the screen shot for your reference.

Hope you will refer this and check it again with the latest code. If problem still persist then let us know about it.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :
Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

Your example is a good example because, you have a price unit in USD and cost price in 300 EUR. So your margin is wrong.

Other example : I created a new database with currency EUR for my company, The customer ASUSTEK have a pricelist in USD.
I created a product with cost price to 5 EUR and sale price to 10 EUR.
I created a new sale order with my customer ASUSTEK
I added my new product
In price unit, we have 12,83 USD and cost price 5 USD. For sale, the current rate is 1.2834 and purchase is 1.
So for me it's not correct.

Changed in openobject-addons:
status: Incomplete → New
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello,

When we are using the multi currency environment i.e customer of a sale order and company have different currencies. The method "_product_margin" of sale_margin module did not consider the reference rate and need to be improved.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/pso-dev-addons3.
Rev-id: <email address hidden>
Rev-no: 4620

It will be merged soon with Addons3 branch.

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
milestone: none → 6.0-rc2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.