Merge lp:~openerp-dev/openobject-addons/6.0-opw-591881-msh into lp:openobject-addons/6.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/6.0-opw-591881-msh |
Merge into: | lp:openobject-addons/6.0 |
Diff against target: |
48 lines (+7/-9) 2 files modified
product/product.py (+2/-1) purchase/purchase.py (+5/-8) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-591881-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vinay Rana (OpenERP) | Pending | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+167479@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of uom conversion, conversion of supplier quantity should from supplier uom to purchase uom.
Demo:- Create one test product with Default unit of measure cm and Purchase unit of measure km, also define the supplier for product with supplier unit of measure to km and minimum quantity 1.
Now ask for product that is create procurement order for this product with 100cm and check the product quantity in purchase order, conversion is wrong, the method _calc_qty of product_
One more scenario is remove minimum quantity from supplier and then create procurement order, still conversion issue.
So fixed this issue and used po_uom_id, check version 6.1 or 7.0 we use supplier uom as po_uom by default and made that supplier uom field readonly so there is no need of conversion from supplier to po, the quantity should always be converted to purchase UOM.
Thanks.
Unmerged revisions
- 5478. By Mohammed Shekha<email address hidden>
-
[FIX]Fixed the issue of uom conversion, conversion of supplier quantity should from supplier uom to purchase uom.