[imp] config view

bzr revid: rlo@openerp.com-20120305145001-uut48z736imzbwtn
This commit is contained in:
Roberto López López (OpenERP)
2012-03-05 15:50:01 +01:00
parent 01e67d6dd5
commit ce1d3ce094
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ class google_docs_config(osv.osv):
res = super(users, 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, #[vals['model_id']], {'member_ids':[(4, res)]},
self.write(cr, uid,
{
'model_id': model_obj.get(cr, uid, vals.get('context_model_id'))[0],
'gdocs_resource_id': vals.get('context_gdocs_resource_id'),