From 324cf5f27a22e7fcc67920075862ceed417986d6 Mon Sep 17 00:00:00 2001 From: David Beal Date: Sun, 28 Jun 2015 16:32:21 +0200 Subject: [PATCH] test controller --- help_contextual_popup/__openerp__.py | 3 +-- help_contextual_popup/model.py | 6 ++++++ help_contextual_popup/static/src/js/popup_help.js | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/help_contextual_popup/__openerp__.py b/help_contextual_popup/__openerp__.py index 6a50b045..154f58de 100644 --- a/help_contextual_popup/__openerp__.py +++ b/help_contextual_popup/__openerp__.py @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -36,5 +36,4 @@ 'static/src/xml/popup_help.xml', ], 'installable': True, - 'auto_install': False, } diff --git a/help_contextual_popup/model.py b/help_contextual_popup/model.py index 6674dec8..fa42b452 100644 --- a/help_contextual_popup/model.py +++ b/help_contextual_popup/model.py @@ -20,6 +20,7 @@ ############################################################################## from openerp import models, fields +from openerp.http import Controller, route class IrActionsActwindow(models.Model): @@ -29,3 +30,8 @@ class IrActionsActwindow(models.Model): string="Custom Help", help="Use this field to add custom content for documentation purpose") + +class MyController(Controller): + @route('/help', auth='public') + def handler(self): + return 'blabla' diff --git a/help_contextual_popup/static/src/js/popup_help.js b/help_contextual_popup/static/src/js/popup_help.js index b8882364..09e38888 100644 --- a/help_contextual_popup/static/src/js/popup_help.js +++ b/help_contextual_popup/static/src/js/popup_help.js @@ -12,8 +12,11 @@ openerp.help_contextual_popup = function(instance, local) { return true; } $elem.data('click-init', true); - + var help_html = ''; + help_html += '' + help_html += '→ Exemple ←' if (self.action.help) { help_html += '

Odoo Help

' help_html += '
' + self.action.help + '
';