← Back to team overview

openerp-india team mailing list archive

[Bug 1011927] Re: price_get_multi does not work for a list of pricelists

 

Hello Richard,

Thanks for your quick response and nice explanation.. :).

I have tried the same scenario and faced the same problem. But I am not
able to found that any real time situation where 2 price list are used
for price calculation on same product. Well, price_get multi has a
problem , It does not work for a list of pricelists.

So due to not found any real time scenario where these type of situation applicable. I am considering this as a "Low" importance .
Additionally I wonder that if I passed the list of ids like [2,1] I got the same result as [1,2] ( li.e {'item_id' : 1000, 1: 1500, 2: 1500} as per your example.) 

If you have any real time scenario where 2 price list are used same time
for same product then you can provide here.(May be it will help for
raised importance)

Thanks again!

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: Incomplete => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

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

Title:
  price_get_multi does not work for a list of pricelists

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  In pricelist.py, in product, price_get calls price_get_multi

  If a list of pricelist_ids is passed, the complete list returned is
  the same price multiple times!

  The bug is that pricelist_version_ids is retrieved as a list, which does not at all link to pricelist_ids.
  Then, in the loop (for pricelist_id in pricelist_ids) the cr.execute always uses pricelist_version_ids[0]!, not the pricelist_version_id for current pricelist.

  The only way for this to work is to retrieve one pricelist at a time.

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


References