[MERGE] lp:731035

bzr revid: qdp-launchpad@openerp.com-20110309184127-hac60f3vqynk0rkh
This commit is contained in:
Quentin (OpenERP)
2011-03-09 19:41:27 +01:00
+1
View File
@@ -122,6 +122,7 @@ class product_uom(osv.osv):
_sql_constraints = [
('factor_gt_zero', 'CHECK (factor!=0)', 'The conversion ratio for a unit of measure cannot be 0!'),
('factor_category_id_uniq', 'unique (category_id, factor)', 'You can not have more than one UOM with same factor for same UOM category'),
]
def _compute_qty(self, cr, uid, from_uom_id, qty, to_uom_id=False):