Merge lp:~openerp-dev/openobject-addons/6.1-opw-591566-ado into lp:openobject-addons/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/6.1-opw-591566-ado |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
70 lines (+42/-1) 1 file modified
sale_margin/sale_margin.py (+42/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-591566-ado |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier ALT | Pending | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+163462@code.launchpad.net |
Description of the change
Hello,
"[FIX]:sale_margin: cost price calculation in sale order line goes wrong while using multicompany & multicurrency"
Issue:
While using multicurrency with sale margin the cost(purchse_price) price calculation for sale order line goes wrong.
For e.g: We have 2 companies(A,B), the price(cost/sales) on the product form is in EUR. The company B is in the currency USD, defined with the sales price list and purchase price list in USD too.
When a user logins to the company B to create a SO with price list in USD you will see on sale order line the cost price is same as defined in product form(which is defined on the product form and in “EUR” ), the cost price on the SO with USD should be converted from EUR to USD value like price unit.
Steps:
1). Install sale,sale margin with demo data
2). Now create a new company with currency USD and configured necessary shop,warehouse and locations, now assigned this to a user who has rights as admin have(Now you have 2 company A for admin ,B for demo)
3). Create a new product with sale price = 10, cost price = 5 (which is in EUR becuase you login with admin for company A)
4). Create new pricelist for USD which will be used for company B in sale order
5). Now login with the new user of company B which has currency USD, create a new sale order with USD pricelist and select the newly created product in sale order line, you will see in sale order line price unit = 12.83, cost price = 5.0
Regards,
Amit
Unmerged revisions
- 7205. By Amit Dodiya (OpenERP)
-
[FIX]:sale_margin: the cost price calculation in sale order line goes wrong while using multicompany & multicurrency