ir.model: simplify some defaults

bzr revid: p_christ@hol.gr-20101123154335-tl2jm6litwx3ysro
This commit is contained in:
P. Christeas 2010-11-23 17:43:35 +02:00
parent 0c1061e4de
commit ec2c32e2fe
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ class ir_model_data(osv.osv):
_defaults = {
'date_init': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'date_update': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'noupdate': lambda *a: False,
'module': lambda *a: ''
'noupdate': False,
'module': ''
}
_sql_constraints = [
('module_name_uniq', 'unique(name, module)', 'You cannot have multiple records with the same id for the same module !'),