[IMP] crm: changed _sql_constraints
bzr revid: cha@tinyerp.com-20121120122705-ioqxdvf4e1as30zy
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user