diff --git a/help_popup/README.rst b/help_popup/README.rst index 98080114..1cc6c224 100644 --- a/help_popup/README.rst +++ b/help_popup/README.rst @@ -6,8 +6,8 @@ Help Popup =========== This module adds an html help popup on each model action. -Two help fields are added to actions: owner_help (html widget) -and custom_help. +Two help fields are added to actions: enduser_help (html widget) +and advanced_help. Installation @@ -22,7 +22,7 @@ Configuration Go to the action of your choice to add some help content or put data in some modules. -To display the button which open the popup, owner_help or custom_help field +To display the button which open the popup, enduser_help or advanced_help field should be set to any value. diff --git a/help_popup/demo/help.xml b/help_popup/demo/help.xml index 6fc5a031..777ec69a 100644 --- a/help_popup/demo/help.xml +++ b/help_popup/demo/help.xml @@ -4,13 +4,13 @@ - Hi Odooer,

-I'm the field 'owner_help' in the Customer action model +I'm the field 'enduser_help' in the Customer action model

I'm displayed in a Qweb html report @@ -26,13 +26,13 @@ Don't hesitate to customized me with your own words and syntax - Hi developers,

-I'm the field 'custom_help' in the customer action also displayed in Qweb report. +I'm the field 'advanced_help' in the customer action also displayed in Qweb report.

Akretion wrote these words to explain my main purpose: diff --git a/help_popup/i18n/fr.po b/help_popup/i18n/fr.po new file mode 100644 index 00000000..5ba5ca0b --- /dev/null +++ b/help_popup/i18n/fr.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-23 13:41+0000\n" +"PO-Revision-Date: 2015-07-23 15:47+0100\n" +"Last-Translator: David BEAL \n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 1.7.5\n" + +#. module: help_popup +#: model:ir.actions.report.xml,name:help_popup.report_help_popup +msgid "Contextual Help" +msgstr "Aide contextuelle" + +#. module: help_popup +#: field:ir.actions.act_window,advanced_help:0 +msgid "Custom Help" +msgstr "Aide personnalisée" + +#. module: help_popup +#: field:ir.actions.act_window,enduser_help:0 +msgid "End User Help" +msgstr "Aide Utilisateurs Finaux" + +#. module: help_popup +#: view:website:help_popup.tpl_help +msgid "Help from Odoo" +msgstr "Aide d'Odoo" + +#. module: help_popup +#: view:website:help_popup.tpl_help +msgid "Help from developer" +msgstr "Aide du développeur" + +#. module: help_popup +#: help:ir.actions.act_window,advanced_help:0 +msgid "" +"Use this field to add custom content for documentation purpose\n" +"mainly by developers" +msgstr "" +"Utilisez ce champ pour ajouter du contenu documentaire\n" +"principalement par les développeurs" + +#. module: help_popup +#: help:ir.actions.act_window,enduser_help:0 +msgid "" +"Use this field to add custom content for documentation purpose\n" +"mainly by power users " +msgstr "" +"Utilisez ce champ pour ajouter du contenu documentaire\n" +"principalement par les utilisateurs avancés." diff --git a/help_popup/i18n/help_popup.pot b/help_popup/i18n/help_popup.pot new file mode 100644 index 00000000..a40c588a --- /dev/null +++ b/help_popup/i18n/help_popup.pot @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * help_popup +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-23 13:41+0000\n" +"PO-Revision-Date: 2015-07-23 13:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: help_popup +#: model:ir.actions.report.xml,name:help_popup.report_help_popup +msgid "Contextual Help" +msgstr "" + +#. module: help_popup +#: field:ir.actions.act_window,advanced_help:0 +msgid "Custom Help" +msgstr "" + +#. module: help_popup +#: field:ir.actions.act_window,enduser_help:0 +msgid "End User Help" +msgstr "" + +#. module: help_popup +#: view:website:help_popup.tpl_help +msgid "Help from Odoo" +msgstr "" + +#. module: help_popup +#: view:website:help_popup.tpl_help +msgid "Help from developer" +msgstr "" + +#. module: help_popup +#: help:ir.actions.act_window,advanced_help:0 +msgid "Use this field to add custom content for documentation purpose\n" +"mainly by developers" +msgstr "" + +#. module: help_popup +#: help:ir.actions.act_window,enduser_help:0 +msgid "Use this field to add custom content for documentation purpose\n" +"mainly by power users " +msgstr "" + diff --git a/help_popup/model.py b/help_popup/model.py index 8ddadf43..9c0a3b70 100644 --- a/help_popup/model.py +++ b/help_popup/model.py @@ -25,11 +25,11 @@ from openerp import models, fields class IrActionsActwindow(models.Model): _inherit = 'ir.actions.act_window' - owner_help = fields.Html( - string="Owner Help", + enduser_help = fields.Html( + string="End User Help", help="Use this field to add custom content for documentation purpose\n" - "mainly for the ERP owner") - custom_help = fields.Text( - string="Custom Help", + "mainly by power users ") + advanced_help = fields.Text( + string="Advanced Help", help="Use this field to add custom content for documentation purpose\n" - "mainly for module developers") + "mainly by developers") diff --git a/help_popup/report/help.xml b/help_popup/report/help.xml index 28762a72..a11560f9 100644 --- a/help_popup/report/help.xml +++ b/help_popup/report/help.xml @@ -13,12 +13,12 @@

-
+

-

Help from developer

-
+

Help from developer

+

diff --git a/help_popup/static/src/js/popup_help.js b/help_popup/static/src/js/popup_help.js index 82d6b9de..48668727 100644 --- a/help_popup/static/src/js/popup_help.js +++ b/help_popup/static/src/js/popup_help.js @@ -14,7 +14,7 @@ openerp.help_popup = function(instance, local) { $elem.data('click-init', true); //alert('ee' + self.action) console.log(self.action.id) - if (self.action.id == undefined || (self.action.custom_help == '' && self.action.owner_help == '')) { + if (self.action.id == undefined || (self.action.advanced_help == '' && self.action.enduser_help == '')) { self.$el.find('span.view_help').hide() } $elem.on('click', function(e) { diff --git a/help_popup/views/action_view.xml b/help_popup/views/action_view.xml index e01c65f8..5b59b3b9 100644 --- a/help_popup/views/action_view.xml +++ b/help_popup/views/action_view.xml @@ -8,8 +8,8 @@ ref="base.view_window_action_form"/> - - + +