Atik Agewan(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-731035-aag into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #731035 in OpenERP Addons: "Reference UoM for category should be checked 
for uniqueness"
  https://bugs.launchpad.net/openobject-addons/+bug/731035

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-731035-aag/+merge/64665


Hello 

 product:Now user can create unique UOM 

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-731035-aag/+merge/64665
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-731035-aag.
=== modified file 'product/product.py'
--- product/product.py	2011-05-31 22:09:51 +0000
+++ product/product.py	2011-06-15 11:19:25 +0000
@@ -122,7 +122,7 @@
 
     _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'),
+        ('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):

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

Reply via email to