[6.1/Trunk] Purchase/Sale Order does not use product's non-reference Unit-type Unit of Measure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Problem:
For a product using Unit-type units of measure, both Sales Orders and Purchase Orders use the reference unit of measure (PCE) and ignore the product's 'Default Unit of Measure' and 'Purchase Unit of Measure', respectively.
Steps to produce:
1. In product definition, use two different units for 'Default Unit of Measure' and 'Purchase Unit of Measure' that belong to the 'Unit' Unit of Measure category, but are different from the reference unit of measure (PCE).
E.g. create two new units of measure of category 'Unit': 'Pack 2' and 'Case 24' and use them as the 'Default Unit of Measure' and 'Purchase Unit of Measure', respectively.
Sales Order:
2. Crate a Sales Order, select a customer, and then create a Sales Order Line.
3. In the 'Create: Sales Order Lines', select a product whose Default Unit of Measure is not 'PCE' but is from the 'Unit' UoM Category, and notice that the UoM field remains PCE.
Purchase Order:
2. Create a Purchase Order, select a supplier, and then create a Purchase Order Line.
3. In the 'Create: Purchase Order Lines', select a product whose Default Unit of Measure is not 'PCE' but is from the 'Unit' UoM Category, and notice that the 'Product UOM' field remains PCE.
Expected Behavior:
The UoM field of the Sales Order and the Purchase Order lines should update to the product's respective units. This works for other UoM categories, but not for the 'Unit' category.
Related branches
- Serpent Consulting Services (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 53 lines (+0/-18)2 files modifiedpurchase/purchase.py (+0/-9)
sale/sale.py (+0/-9)
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
assignee: | OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
summary: |
- [6.1] Purchase/Sale Order does not use product's non-reference Unit-type - Unit of Measure + [6.1/Trunk] Purchase/Sale Order does not use product's non-reference + Unit-type Unit of Measure |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
importance: | Low → Medium |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Hello Ahmad Khayyat,
I have checked your Issue, But I did not face any problem at my end. I have attached the video for your more reference. So would you please check it and notify us where you have faced the problem.
Thank you and waiting for your reply!