summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 099890665f8..c41f1b5e82a 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -262,7 +262,8 @@ class config(osv.osv):
model_fields_dic = self.pool.get(action.model_id.model).read(cr, uid, record_id, [], context=context)
name_gdocs = action.name_template
name_gdocs = name_gdocs.replace('model',action.model_id.name)
- name_gdocs = name_gdocs.replace('filter',action.filter_id.name)
+ if action.filter_id:
+ name_gdocs = name_gdocs.replace('filter',action.filter_id.name)
try:
name_gdocs = name_gdocs % model_fields_dic
except: