[trunk/7.0] product_visible_discount doesn't update price_unit on UOM change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
On product_
I have a product with uom_id = 'Unit(s)' with price of 12
When I change the uom to dozen on sale_order, get_real_price returns 12 too.
I've detected why.
factor = 1.0
if uom_id and uom_id != product.uom_id.id:
return product_
If your product_id.uom is unit even if you change uom on sale_order this is pulling the factor only from product_id uom. So it's going to be 1.
The fix must be:
factor = 1.0
if uom_id and uom_id != product.uom_id.id:
return product_
summary: |
- [7.0] product_visible_discount doesn't update price_unit on UOM change + [trunk/7.0] product_visible_discount doesn't update price_unit on UOM + change |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Medium |
status: | New → Confirmed |