summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorMVA <mva@openerp.com>2012-04-03 09:07:52 +0200
committerMVA <mva@openerp.com>2012-04-03 09:07:52 +0200
commit515af1d3d988af70a833a22ada9edce49dd3c351 (patch)
tree5f28d27baa30b4badf0de5d8b477ad91b881b0a6 /addons/google_docs/google_docs.py
parentfb989dbfb7161b9f79ce5bf2024a5f13423b1b6f (diff)
[IMP] change the domain to enable spreadsheet and reindentation in the js file
bzr revid: mva@openerp.com-20120403070752-4gfw1hg3p6ifzmwi
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index e195fcf21a6..5a6d33e9725 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -139,7 +139,7 @@ class config(osv.osv):
Method use with the js to hidde or show the add google doc button
@return : list of configuration ids or false
'''
- if self.pool.get('ir.attachment').search_count(cr,uid,[('url','like','https://docs.google.com/document%'),('res_model','=',model),('res_id','=',ids[0])]) !=0:
+ if self.pool.get('ir.attachment').search_count(cr,uid,[('url','like','https://docs.google.com/%'),('res_model','=',model),('res_id','=',ids[0])]) !=0:
return False
else:
return True