summaryrefslogtreecommitdiff
path: root/addons/google_docs
diff options
context:
space:
mode:
authorRoberto López López (OpenERP) <rlo@openerp.com>2012-03-14 14:18:51 +0100
committerRoberto López López (OpenERP) <rlo@openerp.com>2012-03-14 14:18:51 +0100
commit38cd2dbe298f3b93b8ebc6dc87e016f0e6e09173 (patch)
treee35814712f81fdcc1feee935eb060010d062fb1f /addons/google_docs
parent416ffbb6350c45bc834974f36a3483348d58996a (diff)
[imp] config form
bzr revid: rlo@openerp.com-20120314131851-a3kzuzxt7f33fc9x
Diffstat (limited to 'addons/google_docs')
-rw-r--r--addons/google_docs/google_docs.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 4d2533b9c0b..0d99f5f6d35 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -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()