From bb517b020f922048ab3eef8345018e9959543e4a Mon Sep 17 00:00:00 2001 From: "Dharti Ratani (Open ERP)" Date: Wed, 6 Mar 2013 11:01:38 +0530 Subject: [IMP]Improved demo data bzr revid: dhr@tinyerp.com-20130306053138-nf7hfjxb8ujqyic3 --- addons/google_docs/google_docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addons/google_docs/google_docs.py') 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: -- cgit v1.2.3