[FIX] product :Remove _sql_constraints

lp bug: https://launchpad.net/bugs/731035 fixed

bzr revid: aag@tinyerp.co.in-20110621123355-rxwrb82jlckl622w
This commit is contained in:
aag (OpenERP)
2011-06-21 18:03:55 +05:30
parent 6e948ccb54
commit 4b6c69f421
-1
View File
@@ -122,7 +122,6 @@ class product_uom(osv.osv):
_sql_constraints = [
('factor_gt_zero', 'CHECK (factor!=0)', 'The conversion ratio for a unit of measure cannot be 0!'),
('uom_name_unique', 'unique (name)', 'You cannot have multiple Units of Measure with the same name'),
]
def _compute_qty(self, cr, uid, from_uom_id, qty, to_uom_id=False):