wrong standard price in product_extended for multi-level boms

Bug #599703 reported by Jean-Luc WEYL
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Won't Fix
Undecided
Unassigned

Bug Description

In product_extended/product_extended.py the routine calc_price contains the following test:

>>if not bom.product_id.calculate_price:
 >> return bom.product_id.standard_price

Some lines later, you have another test:

>> if not other_bom.product_id.calculate_price:
>> price += self._calc_price(cr, uid, other_bom) * other_bom.product_qty
>> else:
>> price += other_bom.product_qty * other_bom.product_id.standard_price

The help test of the "calculate_price" filed says:
>>Check this box if the standard price must be computed from the BOM.

So I think that the second test should be reversed in:
>>if not other_bom.product_id.calculate_price:
>> price += other_bom.product_qty * other_bom.product_id.standard_price
>> else:
>> price += self._calc_price(cr, uid, other_bom) * other_bom.product_qty
Is that correct?

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

Our R&D Teams are focused on the latest OpenERP version, and this issue does not affect it.
We stand of course ready to backport the change to stable releases if it has an impact on any customer. In this case please report it to our maintenance team via the OpenERP Publisher's Warranty. They will quickly help solve the issue and backport the fix if needed.

Thanks.

Changed in openobject-addons:
status: New → Won't Fix
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.