[6.1] Product variants produce a wrong price when using extra_price field.

Bug #1076041 reported by Niels Huylebroeck on 2012-11-07
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

When filling in the extra_price field on product.product model the calculated prices (as shown on tree/search/form view of product.product) will add the value twice to the standard_price.

The error seems to originate in product/product.py:645 and product/product.py:461
Both of these functions add the extra_price (and also the price_margin field btw) and one of these functions has already started with the price calculated from the other function. Thus you end up with the standard_price + (2 * extra_price)

I have left the price_margin field out of the test but I assume this is also affecting the resulting price twice.

Regards
Niels

tags: added: maintenance

Video

Sorry forgot attachment with video ...

Amit Parik (amit-parik) on 2012-12-18
no longer affects: openobject-addons/6.1
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Soluntec (soluntec) wrote :

I can confirm this bug. The bug affect me too...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers