diff --git a/support_branding/README.rst b/support_branding/README.rst index 52810827..e6547bf0 100644 --- a/support_branding/README.rst +++ b/support_branding/README.rst @@ -1,6 +1,8 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +================ Support branding ================ @@ -52,6 +54,20 @@ add the following XML:: Note that the email button is only visible if you configure an email address, the default is empty! +Usage +===== + +To use this module, you need to: + +#. In developer mode go to Settings > Technical > Paremeters > System Parameters +#. Configure parameters related with support branding +#. Support branding is shown in the lower part of the left menu and when an exception is raised, the user is asked to provide some details in order to send a mail to the configured support email address. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/162/9.0 + + Bug Tracker =========== @@ -69,6 +85,7 @@ Contributors * Holger Brunn * Stefan Rijnhart +* Angel Moya Icon ---- diff --git a/support_branding/__openerp__.py b/support_branding/__openerp__.py index b8349808..f25b60c5 100644 --- a/support_branding/__openerp__.py +++ b/support_branding/__openerp__.py @@ -1,30 +1,14 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2012-2015 Therp BV (). -# -# 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 . -# -############################################################################## +# Copyright 2012-2015 Therp BV () +# Copyright 2016 - Tecnativa - Angel Moya +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Support branding", "summary": "Adds your branding to an Odoo instance", "category": "Dependecy/Hidden", - "version": "8.0.2.0.0", + "version": "9.0.2.0.0", "license": "AGPL-3", - "author": "Therp BV,Odoo Community Association (OCA)", + "author": "Therp BV,Tecnativa,Odoo Community Association (OCA)", "website": 'http://therp.nl', "depends": [ 'web', @@ -36,5 +20,5 @@ "data/ir_config_parameter.xml", 'views/qweb.xml', ], - 'installable': False, + 'installable': True, } diff --git a/support_branding/data/ir_config_parameter.xml b/support_branding/data/ir_config_parameter.xml index 3ce36ce7..fcc62f88 100644 --- a/support_branding/data/ir_config_parameter.xml +++ b/support_branding/data/ir_config_parameter.xml @@ -1,6 +1,6 @@ - + support_branding.company_name Odoo Community Association (OCA) diff --git a/support_branding/i18n/ar.po b/support_branding/i18n/ar.po new file mode 100644 index 00000000..a3aa10aa --- /dev/null +++ b/support_branding/i18n/ar.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# SaFi J. , 2015 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-12-16 07:41+0000\n" +"PO-Revision-Date: 2015-12-16 16:26+0000\n" +"Last-Translator: SaFi J. \n" +"Language-Team: Arabic (http://www.transifex.com/oca/OCA-web-8-0/language/ar/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr "مدعوم بواسطة" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "إرسال بريد الكتروني إلى %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "إرسال بريد الكتروني إلى دعم الشركة" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "الرجاء الملأ كيف نتج هذا الخطأ ..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "الإصدار" diff --git a/support_branding/i18n/de.po b/support_branding/i18n/de.po new file mode 100644 index 00000000..046456f3 --- /dev/null +++ b/support_branding/i18n/de.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Rudolf Schnapka , 2016 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-10 07:31+0000\n" +"PO-Revision-Date: 2016-01-18 20:58+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-web-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", unterstützt durch" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Email an %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Email an Support-Unternehmen" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Bitte geben Sie an, wie Sie den Fehler ausgelöst haben..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Version" diff --git a/support_branding/i18n/es.po b/support_branding/i18n/es.po new file mode 100644 index 00000000..c1ec0cfe --- /dev/null +++ b/support_branding/i18n/es.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Pedro M. Baeza , 2015 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-23 13:46+0000\n" +"PO-Revision-Date: 2015-11-07 11:24+0000\n" +"Last-Translator: Pedro M. Baeza \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-web-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", mantenido por" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Correo electrónico a %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Correo electrónico a la empresa de mantenimiento" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Por favor rellene la información de cómo se produce este error..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Versión" diff --git a/support_branding/i18n/fi.po b/support_branding/i18n/fi.po new file mode 100644 index 00000000..7c0dc1f2 --- /dev/null +++ b/support_branding/i18n/fi.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Jarmo Kortetjärvi , 2016 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-10 07:31+0000\n" +"PO-Revision-Date: 2016-02-01 09:51+0000\n" +"Last-Translator: Jarmo Kortetjärvi \n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-web-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", tuesta vastuussa: " + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Lähetä sähköpostia vastaanottajalle %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Lähetä sähköpostia tukevalla yritykselle" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Ole hyvä ja kuvaa kuinka sait vikatilanteen aikaan..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Versio" diff --git a/support_branding/i18n/fr.po b/support_branding/i18n/fr.po new file mode 100644 index 00000000..d7df2462 --- /dev/null +++ b/support_branding/i18n/fr.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Christophe CHAUVET , 2016 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-05-06 15:50+0000\n" +"PO-Revision-Date: 2016-05-06 08:19+0000\n" +"Last-Translator: Christophe CHAUVET \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-web-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", supporté par" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Envoyer un courriel à %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Envoyer un courriel au support société" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Veuillez indiquer comment vous avez produit cette erreur..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Version" diff --git a/support_branding/i18n/it.po b/support_branding/i18n/it.po new file mode 100644 index 00000000..729794a8 --- /dev/null +++ b/support_branding/i18n/it.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-17 07:29+0000\n" +"PO-Revision-Date: 2016-03-19 10:15+0000\n" +"Last-Translator: Paolo Valier\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-web-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr "" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Email a %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Versione" diff --git a/support_branding/i18n/nl.po b/support_branding/i18n/nl.po index 374eecbb..a6a80b5b 100644 --- a/support_branding/i18n/nl.po +++ b/support_branding/i18n/nl.po @@ -1,24 +1,21 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * support_branding -# +# * support_branding +# +# Translators: msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: web (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-30 10:05+0000\n" -"PO-Revision-Date: 2015-01-30 10:05+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" +"POT-Creation-Date: 2015-11-23 13:46+0000\n" +"PO-Revision-Date: 2015-11-07 11:19+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-web-8-0/language/nl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: support_branding -#: view:website:web.menu_secondary -msgid "Version " -msgstr "Versie " +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: support_branding #: view:website:web.menu_secondary @@ -27,22 +24,26 @@ msgstr ", ondersteund door" #. module: support_branding #. openerp-web -#: code:addons/support_branding/static/src/js/support_branding.js:39 +#: code:addons/support_branding/static/src/js/support_branding.js:106 #, python-format msgid "Email to %s" msgstr "E-mail naar %s" #. module: support_branding #. openerp-web -#: code:addons/support_branding/static/src/xml/base.xml:9 +#: code:addons/support_branding/static/src/xml/base.xml:12 #, python-format msgid "Email to support company" msgstr "E-mail naar ondersteunend bedrijf" #. module: support_branding #. openerp-web -#: code:addons/support_branding/static/src/xml/base.xml:9 +#: code:addons/support_branding/static/src/xml/base.xml:10 #, python-format msgid "Please fill in how you produced this error..." msgstr "Beschrijft u alstublieft de stappen om deze fout te reproduceren..." +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "" diff --git a/support_branding/i18n/pt_BR.po b/support_branding/i18n/pt_BR.po new file mode 100644 index 00000000..041ce639 --- /dev/null +++ b/support_branding/i18n/pt_BR.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# danimaribeiro , 2016 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-11 02:17+0000\n" +"PO-Revision-Date: 2016-03-05 16:05+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-web-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", suportado por" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Email para %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Email para empresa de suporte" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Por favor conte como você produziu este erro ..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Versão" diff --git a/support_branding/i18n/pt_PT.po b/support_branding/i18n/pt_PT.po new file mode 100644 index 00000000..4809e43d --- /dev/null +++ b/support_branding/i18n/pt_PT.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Pedro Castro Silva , 2016 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-22 15:47+0000\n" +"PO-Revision-Date: 2016-04-23 18:23+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-web-8-0/language/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", suportada por" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "Enviar email a %s" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Enviar email à empresa de suporte" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Por favor, introduza a forma como produziu este erro..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Versão" diff --git a/support_branding/i18n/sl.po b/support_branding/i18n/sl.po index 0e51c7bb..e6eec889 100644 --- a/support_branding/i18n/sl.po +++ b/support_branding/i18n/sl.po @@ -1,26 +1,22 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * support_branding -# +# * support_branding +# +# Translators: +# Matjaž Mozetič , 2015 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: web (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-08-02 10:23+0200\n" -"PO-Revision-Date: 2015-08-02 10:24+0200\n" -"Last-Translator: Matjaz Mozetic \n" -"Language-Team: \n" +"POT-Creation-Date: 2015-11-23 13:46+0000\n" +"PO-Revision-Date: 2015-11-08 05:43+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-web-8-0/language/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" -"X-Generator: Poedit 1.8.2\n" +"Content-Transfer-Encoding: \n" "Language: sl\n" - -#. module: support_branding -#: view:website:web.menu_secondary -msgid "Version " -msgstr "Verzija" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: support_branding #: view:website:web.menu_secondary @@ -29,21 +25,26 @@ msgstr ", podpora" #. module: support_branding #. openerp-web -#: code:addons/support_branding/static/src/js/support_branding.js:39 +#: code:addons/support_branding/static/src/js/support_branding.js:106 #, python-format msgid "Email to %s" msgstr "E-pošta za %s" #. module: support_branding #. openerp-web -#: code:addons/support_branding/static/src/xml/base.xml:9 +#: code:addons/support_branding/static/src/xml/base.xml:12 #, python-format -msgid "Email to Company" -msgstr "E-pošta za družbo" +msgid "Email to support company" +msgstr "Pošlji e-pošto družbi za podporo" #. module: support_branding #. openerp-web -#: code:addons/support_branding/static/src/xml/base.xml:9 +#: code:addons/support_branding/static/src/xml/base.xml:10 #, python-format msgid "Please fill in how you produced this error..." msgstr "Opišite, kako ste prišli do te napake..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Verzija" diff --git a/support_branding/i18n/tr.po b/support_branding/i18n/tr.po new file mode 100644 index 00000000..a89fba1d --- /dev/null +++ b/support_branding/i18n/tr.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * support_branding +# +# Translators: +# Ahmet Altınışık , 2015 +msgid "" +msgstr "" +"Project-Id-Version: web (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-08 21:34+0000\n" +"PO-Revision-Date: 2015-12-30 21:58+0000\n" +"Last-Translator: Ahmet Altınışık \n" +"Language-Team: Turkish (http://www.transifex.com/oca/OCA-web-8-0/language/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: support_branding +#: view:website:web.menu_secondary +msgid ", supported by" +msgstr ", destekleyen" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/js/support_branding.js:106 +#, python-format +msgid "Email to %s" +msgstr "%s ye eposta" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:12 +#, python-format +msgid "Email to support company" +msgstr "Destek şirketine e-posta göder" + +#. module: support_branding +#. openerp-web +#: code:addons/support_branding/static/src/xml/base.xml:10 +#, python-format +msgid "Please fill in how you produced this error..." +msgstr "Bu hatanın nasıl oluştuğunu yazın..." + +#. module: support_branding +#: view:website:web.menu_secondary +msgid "Version" +msgstr "Versiyon" diff --git a/support_branding/static/src/js/support_branding.js b/support_branding/static/src/js/support_branding.js index 30534e7d..26b9557e 100644 --- a/support_branding/static/src/js/support_branding.js +++ b/support_branding/static/src/js/support_branding.js @@ -1,109 +1,86 @@ -/* +/* Copyright 2012-2015 Therp + * Copyright 2016 - Tecnativa - Angel Moya + * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ - Copyright (C) 2012-2015 Therp BV - License: GNU AFFERO GENERAL PUBLIC LICENSE - Version 3 or any later version - - Usage: if you run an OpenERP support company and you support - customers without an OPW, you can brand the OpenERP instance - accordingly using this module. Please enter the two variables - in the code below, 'support_name' and 'support_link'. They will - replace the unfriendly message about the OpenERP instance not - being supported. - - */ - -openerp.support_branding = function(instance) { - var QWeb = instance.web.qweb, - _t = instance.web._t; - - instance.web.CrashManager.include({ - init: function() - { +odoo.define('web.support_branding', function(require) { + var CrashManager = require('web.CrashManager'); + var core = require('web.core'); + var Model = require('web.Model'); + var _t = core._t; + CrashManager.include({ + init: function() { var self = this, - ir_config_parameter = new openerp.web.Model('ir.config_parameter'); + ir_config_parameter = new Model('ir.config_parameter'); ir_config_parameter.call( 'get_param', ['support_branding.support_email']).then( - function(email) - { + function(email) { self.support_branding_support_email = email; }); ir_config_parameter.call( 'get_param', ['support_branding.company_name']).then( - function(name) - { + function(name) { self.support_branding_company_name = name; }); return this._super(this, arguments); }, - show_error: function(error) - { + show_error: function(error) { var self = this; this._super.apply(this, arguments); - jQuery('.support-branding-submit-form').each(function() - { + jQuery('.support-branding-submit-form').each(function() { var $form = jQuery(this), $button = $form.find('button'), $description = $form.find('textarea[name="description"]'), $subject = $form.find('input[name="subject"]'), $body = $form.find('input[name="body"]'); - if(self.support_branding_support_email) - { + if (self.support_branding_support_email) { $form.attr( 'action', 'mailto:' + self.support_branding_support_email); $form.parents('.modal').find('.modal-body') .css('max-height', '70vh'); - $button.click(function(ev) - { - var mail_mail = new instance.web.Model('mail.mail'); - if(!$description.val()) - { + $button.click(function(ev) { + var mail_mail = new Model('mail.mail'); + if (!$description.val()) { $description.parent().addClass('oe_form_invalid'); ev.preventDefault(); return; } mail_mail.call( - 'create', - [{ - state: 'outgoing', - auto_delete: false, - email_to: self.support_branding_support_email, - subject: $subject.val(), - body_html: jQuery('
').append( - jQuery('
').text($description.val()), - jQuery('
').text($body.val())
-                                ).html(),
-                            }])
-                        .then(function(mail_id)
-                        {
-                            return mail_mail.call('send', [[mail_id]]);
-                        }, function()
-                        {
-                            // if the call failed, fire the mailto link
-                            // hoping there is a properly configured email
-                            // client
-                            $body.val($description.val() + '\n' + $body.val())
-                            $button.unbind('click');
-                            $button.click();
-                        })
-                        .then(function()
-                        {
-                            $form.parents('.modal').modal('hide');
-                        });
+                                'create', [{
+                                    state: 'outgoing',
+                                    auto_delete: true,
+                                    email_to: self.support_branding_support_email,
+                                    subject: $subject.val(),
+                                    body_html: jQuery('
').append( + jQuery('
').text($description.val()), + jQuery('
').text($body.val())
+                                    ).html(),
+                                }])
+                            .then(function(mail_id) {
+                                return mail_mail.call('send', [
+                                    [mail_id]
+                                ]);
+                            }, function() {
+                                // if the call failed, fire the mailto link
+                                // hoping there is a properly configured email
+                                // client
+                                $body.val($description.val() + '\n' + $body.val());
+                                $button.unbind('click');
+                                $button.click();
+                            })
+                            .then(function() {
+                                $form.parents('.modal').modal('hide');
+                            });
                         ev.preventDefault();
                     });
-                }
-                else
-                {
+                } else {
                     $description.hide();
                     $button.hide();
                 }
-                if(self.support_branding_company_name)
-                {
+                if (self.support_branding_company_name) {
                     $button.text(
                         _.str.sprintf(
-                            openerp.web._t('Email to %s'),
+                            _t('Email to %s'),
                             self.support_branding_company_name));
                 }
                 $form.prependTo(
@@ -111,4 +88,6 @@ openerp.support_branding = function(instance) {
             });
         }
     });
-};
+    // this is already instantiated, so we need to call init manually
+    require('web.crash_manager').init();
+});
diff --git a/support_branding/static/src/xml/base.xml b/support_branding/static/src/xml/base.xml
index bcbf8aca..4d0f5861 100644
--- a/support_branding/static/src/xml/base.xml
+++ b/support_branding/static/src/xml/base.xml
@@ -9,7 +9,7 @@