openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #04146
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-733143-rpa into lp:openobject-addons
Rucha (Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-733143-rpa into lp:openobject-addons.
Requested reviews:
qdp (OpenERP) (qdp)
Related bugs:
Bug #733143 in OpenERP Addons: "product_visible_discount exception in orders after choosing a product"
https://bugs.launchpad.net/openobject-addons/+bug/733143
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-733143-rpa/+merge/53237
Fix: https://bugs.launchpad.net/openobject-addons/+bug/733143
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-733143-rpa/+merge/53237
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-733143-rpa.
=== modified file 'product/pricelist.py'
--- product/pricelist.py 2011-03-09 16:05:32 +0000
+++ product/pricelist.py 2011-03-14 13:17:31 +0000
@@ -284,6 +284,7 @@
price = False
if price:
+ results['item_id'] = res['id']
if 'uom' in context and not uom_price_already_computed:
product = products_dict[product_id]
uom = product.uos_id or product.uom_id
@@ -299,7 +300,7 @@
def price_get(self, cr, uid, ids, prod_id, qty, partner=None, context=None):
res_multi = self.price_get_multi(cr, uid, pricelist_ids=ids, products_by_qty_by_partner=[(prod_id, qty, partner)], context=context)
res = res_multi[prod_id]
- res.update({'item_id': {ids[-1]: ids[-1]}})
+ res.update({'item_id': {ids[-1]: res_multi['item_id']}})
return res
def price_get_old(self, cr, uid, ids, prod_id, qty, partner=None, context=None):
Follow ups