[IMP] crm: changed _sql_constraints

bzr revid: cha@tinyerp.com-20121120122705-ioqxdvf4e1as30zy
This commit is contained in:
Ajay Chauhan (OpenERP)
2012-11-20 17:57:05 +05:30
parent 74825e615c
commit df6c3c29ab
+1 -1
View File
@@ -273,7 +273,7 @@ class crm_lead(base_stage, format_address, osv.osv):
}
_sql_constraints = [
('check_probability', 'check(probability <= 100)', 'Probability can not be more than 100% !')
('check_probability', 'check(probability >= 0 and probability <= 100)', 'Probability should be between 0-100% !')
]
def create(self, cr, uid, vals, context=None):