diff --git a/addons/crm/crm_lead_demo.xml b/addons/crm/crm_lead_demo.xml index 2478673d8a2..85752d17fa5 100644 --- a/addons/crm/crm_lead_demo.xml +++ b/addons/crm/crm_lead_demo.xml @@ -712,8 +712,8 @@ Andrew - https://docs.google.com/spreadsheet/ccc?key=0Ah2qnrLAoZmUdGRvdVdmS1VoSDctWk1kd18taGZ4ckE#gid=0 - lead_sales-department_%(name)s_review + https://docs.google.com/spreadsheet/ccc?key=0Ah2qnrLAoZmUdGRvdVdmS1VoSDctWk1kd18taGZ4ckE#gid=0 + Plan to attend meeting_Leads_Agrolait_gdoc 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: