← Back to team overview

openerp-dev-web team mailing list archive

Re: [Merge] lp:~openerp-dev/openobject-addons/trunk-bug-742100-ron into lp:openobject-addons

 

Review: Needs Fixing
Working perfect now.. needs some refactoring:

sale/sale.py
+ if not uom:
	+ uom =product_obj.uom_id and product_obj.uom_id.id

    above part of code is none of use as we already have if conditions for uom before this code:
    1. if (not uom) and (not uos):
    2. elif uos and not uom:

should be like:
 price = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist],
         product, qty or 1.0, partner_id, {
-            'uom': uom,
+            'uom': uom or result.get('product_uom'),
             'date': date_order,
             })[pricelist]



-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-742100-ron/+merge/55734
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-742100-ron.



References