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
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp