[IMP] default value for module

bzr revid: fp@tinyerp.com-20091013175813-vlqi304leu84x0wx
This commit is contained in:
Fabien Pinckaers 2009-10-13 19:58:13 +02:00
parent 95ec254f70
commit be09477845
1 changed files with 2 additions and 1 deletions

View File

@ -415,7 +415,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
'noupdate': lambda *a: False,
'module': lambda *a: ''
}
_sql_constraints = [
('module_name_uniq', 'unique(name, module)', 'You can not have multiple records with the same id for the same module'),