← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 673122] [NEW] trunk v6 Error on calc price of a product on sale.order.line

 

Public bug reported:

on sale module when I try to add a sale line, I got a keyerror.

I think that error was that the function price_get_multi return a dict with
the pricelist_version id, and the sale.order.line try to use the pricelist id.

See this code on product_id_change on sale.py, and review price_get_multi,
           price = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist],
                    product, qty or 1.0, partner_id, {
                        'uom': uom,
                        'date': date_order,
                        })[pricelist]

To solve the problem I think price_get_multi should return pricelist id
instead of pricelist_version id

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
trunk v6 Error on calc price of a product on sale.order.line
https://bugs.launchpad.net/bugs/673122
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
on sale module when I try to add a sale line, I got a keyerror.

I think that error was that the function price_get_multi return a dict with
the pricelist_version id, and the sale.order.line try to use the pricelist id.

See this code on product_id_change on sale.py, and review price_get_multi,
           price = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist],
                    product, qty or 1.0, partner_id, {
                        'uom': uom,
                        'date': date_order,
                        })[pricelist]

To solve the problem I think price_get_multi should return pricelist id instead of pricelist_version id





Follow ups

References