Cédric Pigeon
10 years ago
9 changed files with 373 additions and 6 deletions
-
6help_online/__openerp__.py
-
222help_online/i18n/fr_BE.po
-
1help_online/models/__init__.py
-
6help_online/models/export_help_wizard.py
-
49help_online/models/import_help_wizard.py
-
32help_online/security/help_online_rules.xml
-
15help_online/views/help_online_view.xml
-
46help_online/views/import_help_wizard_view.xml
-
2help_online/views/ir_ui_view_view.xml
@ -0,0 +1,222 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * help_online |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2014-10-14 09:06+0000\n" |
|||
"PO-Revision-Date: 2014-10-14 09:06+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_online |
|||
#. openerp-web |
|||
#: code:addons/help_online/static/src/js/help_online.js:83 |
|||
#, python-format |
|||
msgid "Cancel" |
|||
msgstr "Annuler" |
|||
|
|||
#. module: help_online |
|||
#: view:export.help.wizard:help_online.export_help_wizard_view |
|||
#: view:import.help.wizard:help_online.import_help_wizard_view |
|||
msgid "Close" |
|||
msgstr "Fermer" |
|||
|
|||
#. module: help_online |
|||
#. openerp-web |
|||
#: code:addons/help_online/static/src/js/help_online.js:81 |
|||
#, python-format |
|||
msgid "Confirm" |
|||
msgstr "Confirmer" |
|||
|
|||
#. module: help_online |
|||
#: code:addons/help_online/models/help_online.py:60 |
|||
#, python-format |
|||
msgid "Create Help page for %s" |
|||
msgstr "Créer lapage d'aide pour %s" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,create_uid:0 |
|||
#: field:help.online,create_uid:0 |
|||
#: field:import.help.wizard,create_uid:0 |
|||
msgid "Created by" |
|||
msgstr "Créé par" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,create_date:0 |
|||
#: field:help.online,create_date:0 |
|||
#: field:import.help.wizard,create_date:0 |
|||
msgid "Created on" |
|||
msgstr "Créé le" |
|||
|
|||
#. module: help_online |
|||
#: view:export.help.wizard:help_online.export_help_wizard_view |
|||
msgid "Export" |
|||
msgstr "Export" |
|||
|
|||
#. module: help_online |
|||
#: model:ir.actions.act_window,name:help_online.action_export_help_wizard |
|||
msgid "Export Help" |
|||
msgstr "Export Help" |
|||
|
|||
#. module: help_online |
|||
#: view:export.help.wizard:help_online.export_help_wizard_view |
|||
msgid "Export Help Data" |
|||
msgstr "Export des pages d'aide" |
|||
|
|||
#. module: help_online |
|||
#: model:ir.model,name:help_online.model_export_help_wizard |
|||
#: model:ir.ui.menu,name:help_online.menu_help_export |
|||
msgid "Export Help Online" |
|||
msgstr "Export des pages d'aide" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,export_filename:0 |
|||
msgid "Export XML Filename" |
|||
msgstr "Fichier XML" |
|||
|
|||
#. module: help_online |
|||
#: model:ir.ui.menu,name:help_online.menu_help |
|||
#: model:ir.ui.menu,name:help_online.menu_help_main |
|||
msgid "Help Online" |
|||
msgstr "Aide en ligne" |
|||
|
|||
#. module: help_online |
|||
#: code:addons/help_online/models/help_online.py:55 |
|||
#, python-format |
|||
msgid "Help on %s" |
|||
msgstr "Aide sur %s" |
|||
|
|||
#. module: help_online |
|||
#: model:res.groups,name:help_online.help_online_group_reader |
|||
msgid "Help reader" |
|||
msgstr "Aide: lecteur" |
|||
|
|||
#. module: help_online |
|||
#: model:res.groups,name:help_online.help_online_group_writer |
|||
msgid "Help writer" |
|||
msgstr "Aide: rédacteur" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,id:0 |
|||
#: field:help.online,id:0 |
|||
#: field:import.help.wizard,id:0 |
|||
msgid "ID" |
|||
msgstr "ID" |
|||
|
|||
#. module: help_online |
|||
#: view:import.help.wizard:help_online.import_help_wizard_view |
|||
msgid "Import" |
|||
msgstr "Import" |
|||
|
|||
#. module: help_online |
|||
#: model:ir.actions.act_window,name:help_online.action_import_help_wizard |
|||
msgid "Import Help" |
|||
msgstr "Import des pages d'aide" |
|||
|
|||
#. module: help_online |
|||
#: view:import.help.wizard:help_online.import_help_wizard_view |
|||
msgid "Import Help Data" |
|||
msgstr "Import des pages d'aide" |
|||
|
|||
#. module: help_online |
|||
#: model:ir.ui.menu,name:help_online.menu_help_import |
|||
msgid "Import Help Online" |
|||
msgstr "Import des pages d'aide" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,write_uid:0 |
|||
#: field:help.online,write_uid:0 |
|||
#: field:import.help.wizard,write_uid:0 |
|||
msgid "Last Updated by" |
|||
msgstr "Mis à jour par" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,write_date:0 |
|||
#: field:help.online,write_date:0 |
|||
#: field:import.help.wizard,write_date:0 |
|||
msgid "Last Updated on" |
|||
msgstr "Mis à jour le" |
|||
|
|||
#. module: help_online |
|||
#: code:addons/help_online/models/export_help_wizard.py:238 |
|||
#, python-format |
|||
msgid "No data to export !" |
|||
msgstr "Aucune page à exporter !" |
|||
|
|||
#. module: help_online |
|||
#: code:addons/help_online/models/help_online.py:33 |
|||
#, python-format |
|||
msgid "No page prefix parameter specified !" |
|||
msgstr "Le paramètre spécifiant le préfixe des page n'est pas configuré !" |
|||
|
|||
#. module: help_online |
|||
#. openerp-web |
|||
#: code:addons/help_online/static/src/js/help_online.js:88 |
|||
#, python-format |
|||
msgid "Ok" |
|||
msgstr "Ok" |
|||
|
|||
#. module: help_online |
|||
#. openerp-web |
|||
#: code:addons/help_online/static/src/js/help_online.js:107 |
|||
#, python-format |
|||
msgid "Page does not exist. Do you want to create?" |
|||
msgstr "La page n'existe pas. Voulez-vous la créer?" |
|||
|
|||
#. module: help_online |
|||
#: field:import.help.wizard,source_file:0 |
|||
msgid "Source File" |
|||
msgstr "Fichier de données" |
|||
|
|||
#. module: help_online |
|||
#: view:export.help.wizard:help_online.export_help_wizard_view |
|||
msgid "This wizard allow you to export all QWeb views\n" |
|||
" related to help online. The result will be an Odoo\n" |
|||
" data xml file." |
|||
msgstr "Cet assistant vous permet d'exporter toutes les vues QWeb \n" |
|||
" concernant l'aide. Le résultat sera un\n" |
|||
" fichier de données Odoo." |
|||
|
|||
#. module: help_online |
|||
#: view:import.help.wizard:help_online.import_help_wizard_view |
|||
msgid "This wizard allow you to import QWeb views\n" |
|||
" related to help online. The required file format is an Odoo\n" |
|||
" data xml file." |
|||
msgstr "Cet assistant vous permet d'importer toutes les vues QWeb\n" |
|||
" concernant l'aide. Le format de fichier requis est un\n" |
|||
" fichier de données Odoo." |
|||
|
|||
#. module: help_online |
|||
#: code:addons/help_online/models/export_help_wizard.py:275 |
|||
#, python-format |
|||
msgid "Unable to write autobackup file in given directory: %s" |
|||
msgstr "Impossible d'écrire le fichier de sauvegarde dans le répertoire spécifié: %s" |
|||
|
|||
#. module: help_online |
|||
#: view:ir.ui.view:help_online.view_view_search |
|||
msgid "Website Page" |
|||
msgstr "Page du site" |
|||
|
|||
#. module: help_online |
|||
#: view:ir.ui.view:help_online.view_view_form |
|||
msgid "Website Page?" |
|||
msgstr "Page du site?" |
|||
|
|||
#. module: help_online |
|||
#: model:ir.actions.act_window,name:help_online.action_website_pages |
|||
#: model:ir.ui.menu,name:help_online.menu_help_pages |
|||
msgid "Website Pages" |
|||
msgstr "Pages du site" |
|||
|
|||
#. module: help_online |
|||
#: field:export.help.wizard,data:0 |
|||
msgid "XML" |
|||
msgstr "XML" |
|||
|
@ -0,0 +1,49 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) |
|||
# All Rights Reserved |
|||
# |
|||
# WARNING: This program as such is intended to be used by professional |
|||
# programmers who take the whole responsibility of assessing all potential |
|||
# consequences resulting from its eventual inadequacies and bugs. |
|||
# End users who are looking for a ready-to-use solution with commercial |
|||
# guarantees and support are strongly advised to contact a Free Software |
|||
# Service Company. |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# 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 <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
from openerp import models, fields, api |
|||
from openerp.tools import convert |
|||
|
|||
import base64 |
|||
from cStringIO import StringIO |
|||
|
|||
|
|||
class ImportHelpWizard(models.TransientModel): |
|||
_name = "import.help.wizard" |
|||
|
|||
source_file = fields.Binary('Source File') |
|||
|
|||
@api.one |
|||
def import_help(self): |
|||
source_file = base64.decodestring(self.source_file) |
|||
convert.convert_xml_import(self.env.cr, |
|||
self._module, |
|||
StringIO(source_file), |
|||
idref=None, |
|||
mode='init', |
|||
noupdate=False, |
|||
report=None) |
@ -0,0 +1,32 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<record id="online_help_confidential_rule" model="ir.rule"> |
|||
<field name="name">Online Help Hidden by Default</field> |
|||
<field name="model_id" ref="base.model_ir_ui_view"/> |
|||
<field name="domain_force">[ |
|||
'|', |
|||
('type', '!=', 'qweb'), |
|||
('name','not like','help-%'), |
|||
]</field> |
|||
<field name="groups" eval="[(6, 0, [ |
|||
ref('base.group_portal'), |
|||
ref('base.group_public'), |
|||
ref('base.group_user'), |
|||
])]"/> |
|||
<field name="perm_read" eval="1"/><field name="perm_write" eval="0"/> |
|||
<field name="perm_create" eval="0"/><field name="perm_unlink" eval="0"/> |
|||
</record> |
|||
|
|||
<record id="online_help_reader_rule" model="ir.rule"> |
|||
<field name="name">Online Help for Help Reader</field> |
|||
<field name="model_id" ref="base.model_ir_ui_view"/> |
|||
<field name="domain_force">[(1, '=', 1)]</field> |
|||
<field name="groups" eval="[(6, 0, [ |
|||
ref('help_online.help_online_group_reader'), |
|||
])]"/> |
|||
<field name="perm_read" eval="1"/><field name="perm_write" eval="0"/> |
|||
<field name="perm_create" eval="0"/><field name="perm_unlink" eval="0"/> |
|||
</record> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,46 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<record model="ir.ui.view" id="import_help_wizard_view"> |
|||
<field name="name">import.help.wizard.view</field> |
|||
<field name="model">import.help.wizard</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Import Help Data"> |
|||
<group> |
|||
<p> |
|||
This wizard allow you to import QWeb views |
|||
related to help online. The required file format is an Odoo |
|||
data xml file. |
|||
</p> |
|||
</group> |
|||
<group> |
|||
<field name="source_file"/> |
|||
</group> |
|||
<footer> |
|||
<span name="go-wizard" attrs="{'invisible': [('source_file', '=', False)]}"> |
|||
<button name="import_help" |
|||
string="Import" |
|||
type="object" |
|||
icon="gtk-execute" |
|||
class="oe_highlight" /> |
|||
or |
|||
</span> |
|||
<button string="Close" class="oe_link" special="cancel" /> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="action_import_help_wizard"> |
|||
<field name="name">Import Help</field> |
|||
<field name="res_model">import.help.wizard</field> |
|||
<field name="view_id" ref="import_help_wizard_view"/> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">new</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue