summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry (OpenERP) <hmo@tinyerp.com>2012-10-17 12:16:15 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2012-10-17 12:16:15 +0530
commit067fa7fe7cd631a4cb50d494c7d99c050dd7fd28 (patch)
treef5bcb818aaa0c705c567208385adf2e71beea41f
parentf2b7e546de984866fa26074ddfc0a5f9f63f0062 (diff)
[FIX]
bzr revid: hmo@tinyerp.com-20121017064615-gaodqeqwx25rgt34
-rw-r--r--addons/google_docs/google_docs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 7be713f4bbb..6e839969998 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -125,10 +125,10 @@ class google_docs_ir_attachment(osv.osv):
google_docs_config = pool_gdoc_config.search(cr, uid, [('model_id', '=', res_model)], context=context)
if google_docs_config:
name_gdocs = pool_gdoc_config.browse(cr, uid, google_docs_config, context=context)[0].name_template
- try:
- name_gdocs = name_gdocs % model_fields_dic
- except:
- raise osv.except_osv(_('Key Error!'), _("Your Google Doc Name Pattern's key does not found in object."))
+ try:
+ name_gdocs = name_gdocs % model_fields_dic
+ except:
+ raise osv.except_osv(_('Key Error!'), _("Your Google Doc Name Pattern's key does not found in object."))
google_template_id = pool_gdoc_config.browse(cr, uid, google_docs_config[0], context=context).gdocs_resource_id
google_document = pool_ir_attachment.copy_gdoc(cr, uid, res_model, res_id, name_gdocs, google_template_id, context=context)
else: