summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorRoberto López López (OpenERP) <rlo@openerp.com>2012-03-14 13:55:02 +0100
committerRoberto López López (OpenERP) <rlo@openerp.com>2012-03-14 13:55:02 +0100
commit416ffbb6350c45bc834974f36a3483348d58996a (patch)
tree8df82c83e0660e583ca80ce0eb0d0dc1d4c73418 /addons/google_docs/google_docs.py
parentd7eafc7be860c2716a7f4cf23841aa2c4d4b92e3 (diff)
[imp]
bzr revid: rlo@openerp.com-20120314125502-ca1g8cw7y3dm65e4
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 874c8893ca6..4d2533b9c0b 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -140,15 +140,15 @@ class config(osv.osv):
}
def create(self, cr, uid, vals, context=None):
- res = super(users, self).create(cr, uid, vals, context=context)
+ 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.get(cr, uid, vals.get('context_model_id'))[0],
+ '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': self.context_name % {'name': vals.get('context_name')},
+ 'context_name': vals.get('context_name'),
'context_multiple': vals.get('context_multiple'),
},
context)