ir.model: simplify some defaults
bzr revid: p_christ@hol.gr-20101123154335-tl2jm6litwx3ysro
This commit is contained in:
parent
0c1061e4de
commit
ec2c32e2fe
|
@ -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 !'),
|
||||
|
|
Loading…
Reference in New Issue