[imp] config form

bzr revid: rlo@openerp.com-20120314131851-a3kzuzxt7f33fc9x
This commit is contained in:
Roberto López López (OpenERP) 2012-03-14 14:18:51 +01:00
parent 416ffbb635
commit 38cd2dbe29
1 changed files with 0 additions and 15 deletions

View File

@ -139,19 +139,4 @@ class config(osv.osv):
'context_multiple': False,
}
def create(self, cr, uid, vals, context=None):
res = super(config, self).create(cr, uid, vals, context=context)
model_obj=self.pool.get('ir.model')
if vals.get('context_gdocs_resource_id') and vals.get('context_model_id'):
self.write(cr, uid,
{
'context_model_id': model_obj.read(cr, uid, [vals.get('context_model_id')])[0],
'context_gdocs_resource_id': vals.get('context_gdocs_resource_id'),
'context_name_template': vals.get('context_name_template'),
'context_name': vals.get('context_name'),
'context_multiple': vals.get('context_multiple'),
},
context)
return res
config()