From bedf4120883af69c0b1b16c5e3ed0cd1b102aa81 Mon Sep 17 00:00:00 2001 From: "Rajesh Prajapati (OpenERP)" Date: Thu, 4 Apr 2013 15:26:19 +0530 Subject: [PATCH] [IMP] google_docs : changes for tooltip of filter bzr revid: rpr@tinyerp.com-20130404095619-lrvwxdc3w42pdaki --- addons/google_base_account/google_base_account_view.xml | 4 ++-- addons/google_docs/google_docs.py | 2 +- addons/google_docs/res_config_user_view.xml | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/addons/google_base_account/google_base_account_view.xml b/addons/google_base_account/google_base_account_view.xml index 366c39f6414..d46a7cb9b27 100644 --- a/addons/google_base_account/google_base_account_view.xml +++ b/addons/google_base_account/google_base_account_view.xml @@ -23,8 +23,8 @@ - - + + diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index 824a9ddf06b..b81b69b7e44 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -161,7 +161,7 @@ class google_docs_ir_attachment(osv.osv): pool_gdoc_config = self.pool.get('google.docs.config') pool_model = self.pool.get("ir.model") attachment = {'url': False} - config = pool_gdoc_config.browse(cr, SUPERUSER_ID, config_id, context=context) + config = pool_gdoc_config.browse(cr, uid, config_id, context=context) if config: res_model = config.model_id model_ids = pool_model.search(cr, uid, [('model','=',res_model)]) diff --git a/addons/google_docs/res_config_user_view.xml b/addons/google_docs/res_config_user_view.xml index 8125a46ae7e..d253956201f 100644 --- a/addons/google_docs/res_config_user_view.xml +++ b/addons/google_docs/res_config_user_view.xml @@ -29,7 +29,10 @@

To create a new filter:
- Go to the OpenERP document you want to filter. For instance, go to Opportunities and search on Sales Department.
- - In this same "Search" view, select the menu "Save Current Filter", enter the name (Ex: Sales Department) + - In this "Search" view, select the option "Save Current Filter", enter the name (Ex: Sales Department)
+ - If you select "Share with all users", link of google document in "More" options will appear for all users in opportunities of Sales Department.
+ - If you don't select "Share with all users", link of google document in "More" options will not appear for other users in opportunities of Sales Department.
+ - If filter is not specified, link of google document will appear in "More" option for all users for all opportunities.