← Back to team overview

openerp-india team mailing list archive

[Bug 1076041] Re: [6.1] Product variants produce a wrong price when using extra_price field.

 

Video

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1076041

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

Status in OpenERP Addons (modules):
  New
Status in OpenERP Addons 6.1 series:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1076041/+subscriptions


References