diff options
| author | Dharti Ratani (Open ERP) <dhr@tinyerp.com> | 2013-03-06 11:01:38 +0530 |
|---|---|---|
| committer | Dharti Ratani (Open ERP) <dhr@tinyerp.com> | 2013-03-06 11:01:38 +0530 |
| commit | bb517b020f922048ab3eef8345018e9959543e4a (patch) | |
| tree | c98dd8a0b98bafa5e50ab1b72fa8c854c18dea00 /addons/google_docs/google_docs.py | |
| parent | ef511b5762449e2502c236a4990fb19908735b56 (diff) | |
[IMP]Improved demo data
bzr revid: dhr@tinyerp.com-20130306053138-nf7hfjxb8ujqyic3
Diffstat (limited to 'addons/google_docs/google_docs.py')
| -rw-r--r-- | addons/google_docs/google_docs.py | 3 |
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: |
