← Back to team overview

openerp-india team mailing list archive

[Bug 997898] Re: Partner Section price not working when using product templates

 

Hi Amit, when you use all you products with a one to one relation with
its variant there is no problem, because product_id = tmpl_id.

But if you install the module product_variant_multi that lets you see
the product and the variant by separate and were you join the two or
three products to the same template, thats where the problem starts.

Ex, I made a new product called IceCream and use the reference 2. Both
IceCream 1 and 2 have the same template, for the product IceCream 1
there is not going to be a problem because (again) product_id = tmpl_id,
but to IceCream 2 yes because product_id <> tmpl_id.

Find the video attached, I stated with the patch on, then I take it off
and finally I put it back on...


** Attachment added: "out-17.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/997898/+attachment/3142261/+files/out-17.ogv

-- 
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/997898

Title:
  Partner Section price not working when using product templates

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Price List price_get_multi looks for product_id insted of tmpl_id for
  partener section.

  1) Make a purchase order
  2) Select a parnter 
  3)Select a price list that has on it's highest sequence the option Partner section of the product form.
  3) select a product, make sure that the product has a supplier price (obvious the same as the parnter selected)

  This will work, but if you are using product templates, the query on
  pricelist.py on the function price_get_multi  looks for product_id
  insted of product templates, and on the product supplier info table is
  routed to product_template.

  find my patch attached...

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


References