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.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help   : https://help.launchpad.net/ListHelp

Reply via email to