diff --git a/report_qweb_txt/README.rst b/report_qweb_txt/README.rst new file mode 100644 index 000000000..21cd7854d --- /dev/null +++ b/report_qweb_txt/README.rst @@ -0,0 +1,21 @@ +**This file is going to be generated by oca-gen-addon-readme.** + +*Manual changes will be overwritten.* + +Please provide content in the ``readme`` directory: + +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) + +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. + +A good, one sentence summary in the manifest is also highly recommended. diff --git a/report_qweb_txt/__init__.py b/report_qweb_txt/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/report_qweb_txt/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/report_qweb_txt/__manifest__.py b/report_qweb_txt/__manifest__.py new file mode 100644 index 000000000..c7df10408 --- /dev/null +++ b/report_qweb_txt/__manifest__.py @@ -0,0 +1,18 @@ +# © 2016 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Qweb Text Reports', + 'version': '11.0.1.0.0', + 'category': 'Reporting', + 'license': 'AGPL-3', + 'summary': 'Use Qweb to generate text and CSV reports', + 'author': 'Akretion,Odoo Community Association (OCA)', + 'website': 'http://www.akretion.com', + 'depends': ['base'], + 'demo': [ + 'demo/report.xml', + 'demo/res_users_report.xml', + ], + 'installable': True, +} diff --git a/report_qweb_txt/demo/report.xml b/report_qweb_txt/demo/report.xml new file mode 100644 index 000000000..6933a9d7f --- /dev/null +++ b/report_qweb_txt/demo/report.xml @@ -0,0 +1,13 @@ + + + + + + + diff --git a/report_qweb_txt/demo/res_users_report.xml b/report_qweb_txt/demo/res_users_report.xml new file mode 100644 index 000000000..7df462f86 --- /dev/null +++ b/report_qweb_txt/demo/res_users_report.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/report_qweb_txt/i18n/ca.po b/report_qweb_txt/i18n/ca.po new file mode 100644 index 000000000..da6587cb1 --- /dev/null +++ b/report_qweb_txt/i18n/ca.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Informe" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/da.po b/report_qweb_txt/i18n/da.po new file mode 100644 index 000000000..ce67f6a2a --- /dev/null +++ b/report_qweb_txt/i18n/da.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Rapport" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/de.po b/report_qweb_txt/i18n/de.po new file mode 100644 index 000000000..c485f4fd1 --- /dev/null +++ b/report_qweb_txt/i18n/de.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# Niki Waibel, 2018 +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Bericht" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/el_GR.po b/report_qweb_txt/i18n/el_GR.po new file mode 100644 index 000000000..0fb2f9d4a --- /dev/null +++ b/report_qweb_txt/i18n/el_GR.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Αναφορά" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/es.po b/report_qweb_txt/i18n/es.po new file mode 100644 index 000000000..9301d17cf --- /dev/null +++ b/report_qweb_txt/i18n/es.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# Pedro M. Baeza , 2018 +# OCA Transbot , 2018 +# enjolras , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: enjolras , 2018\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "Lista CSV" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Informe" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "nombre,usuario,fecha_último_acceso,idioma" diff --git a/report_qweb_txt/i18n/es_CO.po b/report_qweb_txt/i18n/es_CO.po new file mode 100644 index 000000000..7191a5606 --- /dev/null +++ b/report_qweb_txt/i18n/es_CO.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Spanish (Colombia) (https://www.transifex.com/oca/teams/23907/" +"es_CO/)\n" +"Language: es_CO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Iforme" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/fr.po b/report_qweb_txt/i18n/fr.po new file mode 100644 index 000000000..90ab713a6 --- /dev/null +++ b/report_qweb_txt/i18n/fr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Rapport" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/gl.po b/report_qweb_txt/i18n/gl.po new file mode 100644 index 000000000..db3ef24c5 --- /dev/null +++ b/report_qweb_txt/i18n/gl.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Informe" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/hr.po b/report_qweb_txt/i18n/hr.po new file mode 100644 index 000000000..90339c942 --- /dev/null +++ b/report_qweb_txt/i18n/hr.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Izvještaj" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/hr_HR.po b/report_qweb_txt/i18n/hr_HR.po new file mode 100644 index 000000000..d317c9bc1 --- /dev/null +++ b/report_qweb_txt/i18n/hr_HR.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Izvještaj" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/it.po b/report_qweb_txt/i18n/it.po new file mode 100644 index 000000000..3f8d82f14 --- /dev/null +++ b/report_qweb_txt/i18n/it.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Report" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/nb_NO.po b/report_qweb_txt/i18n/nb_NO.po new file mode 100644 index 000000000..b18cf6f04 --- /dev/null +++ b/report_qweb_txt/i18n/nb_NO.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" +"teams/23907/nb_NO/)\n" +"Language: nb_NO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Rapport" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/nl_NL.po b/report_qweb_txt/i18n/nl_NL.po new file mode 100644 index 000000000..2bad9e277 --- /dev/null +++ b/report_qweb_txt/i18n/nl_NL.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# Peter Hageman , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: Peter Hageman , 2018\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Rapport" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/pl.po b/report_qweb_txt/i18n/pl.po new file mode 100644 index 000000000..4e0492005 --- /dev/null +++ b/report_qweb_txt/i18n/pl.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" +"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" +"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Raport" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/pt.po b/report_qweb_txt/i18n/pt.po new file mode 100644 index 000000000..843e4ec7f --- /dev/null +++ b/report_qweb_txt/i18n/pt.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Relatório" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/pt_BR.po b/report_qweb_txt/i18n/pt_BR.po new file mode 100644 index 000000000..a4a9b41e5 --- /dev/null +++ b/report_qweb_txt/i18n/pt_BR.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Relatório" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/pt_PT.po b/report_qweb_txt/i18n/pt_PT.po new file mode 100644 index 000000000..27094a5cc --- /dev/null +++ b/report_qweb_txt/i18n/pt_PT.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Relatório" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/report_qweb_txt.pot b/report_qweb_txt/i18n/report_qweb_txt.pot new file mode 100644 index 000000000..9f404f618 --- /dev/null +++ b/report_qweb_txt/i18n/report_qweb_txt.pot @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \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: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" + diff --git a/report_qweb_txt/i18n/sl.po b/report_qweb_txt/i18n/sl.po new file mode 100644 index 000000000..8959fe297 --- /dev/null +++ b/report_qweb_txt/i18n/sl.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Poročilo" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/tr.po b/report_qweb_txt/i18n/tr.po new file mode 100644 index 000000000..2dae9aade --- /dev/null +++ b/report_qweb_txt/i18n/tr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "ir.actions.report.xml" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/i18n/tr_TR.po b/report_qweb_txt/i18n/tr_TR.po new file mode 100644 index 000000000..c521f5547 --- /dev/null +++ b/report_qweb_txt/i18n/tr_TR.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_txt +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-16 01:44+0000\n" +"PO-Revision-Date: 2018-02-16 01:44+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_txt +#: model:ir.actions.report.xml,name:report_qweb_txt.res_users_csv +msgid "CSV List" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_report +msgid "Report" +msgstr "Rapor" + +#. module: report_qweb_txt +#: model:ir.model,name:report_qweb_txt.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: report_qweb_txt +#: model:ir.ui.view,arch_db:report_qweb_txt.report_res_users_csv +msgid "name,login,last_login_date,lang" +msgstr "" diff --git a/report_qweb_txt/models/__init__.py b/report_qweb_txt/models/__init__.py new file mode 100644 index 000000000..a248cf216 --- /dev/null +++ b/report_qweb_txt/models/__init__.py @@ -0,0 +1 @@ +from . import ir_actions_report diff --git a/report_qweb_txt/models/ir_actions_report.py b/report_qweb_txt/models/ir_actions_report.py new file mode 100644 index 000000000..64c01b3d7 --- /dev/null +++ b/report_qweb_txt/models/ir_actions_report.py @@ -0,0 +1,35 @@ +# © 2016-2018 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class IrActionsReport(models.Model): + _inherit = 'ir.actions.report' + + report_type = fields.Selection(selection_add=[ + ('qweb-txt', 'Text'), + ('qweb-txt-csv', 'CSV'), + ]) + + @api.model + def _get_report_from_name(self, report_name): + res = super()._get_report_from_name(report_name) + if not res: + res = self.env['ir.actions.report'].search([ + ('report_type', '!=', False), + ('report_name', '=', report_name)], limit=1) + return res + + @api.model + def render_report(self, res_ids, name, data): + if ( + data.get('report_type') and + data.get('report_type').startswith('qweb-txt')): + ext = data['report_type'].split('-')[-1] + # That way, you can easily add qweb-txt-zpl' or others + # without inheriting this method (you just need to do the + # selection_add on the field 'report_type') + return self.env['report'].get_html(res_ids, name, data=data), ext + else: + return super().render_report(res_ids, name, data) diff --git a/report_qweb_txt/readme/CONTRIBUTORS.rst b/report_qweb_txt/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..40a47a19f --- /dev/null +++ b/report_qweb_txt/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Alexis de Lattre +* Daniel Reis diff --git a/report_qweb_txt/readme/DESCRIPTION.rst b/report_qweb_txt/readme/DESCRIPTION.rst new file mode 100644 index 000000000..52122907e --- /dev/null +++ b/report_qweb_txt/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module extends the possibilities of the native Qweb reporting engine +to be able to generate any kind of text files (TXT, CSV, ZPL, EPL, ...). diff --git a/report_qweb_txt/readme/USAGE.rst b/report_qweb_txt/readme/USAGE.rst new file mode 100644 index 000000000..3f36921a3 --- /dev/null +++ b/report_qweb_txt/readme/USAGE.rst @@ -0,0 +1,8 @@ +To add a text report, you should develop an Odoo module that contains: + +* a Qweb template, +* a Qweb report definition with *report_type = qweb-txt*. + +This module provides a small demo report on *Users* called *CSV List*. + +The module *purchase_dilicom_csv* available on the `dilicom Github repository `_ (branch *10.0*) is a better example: it adds a report *Dilicom CSV Order* on purchase orders. This report is a CSV file with one line per order line and 2 columns: EAN13 and order quantity. diff --git a/report_qweb_txt/static/description/icon.png b/report_qweb_txt/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/report_qweb_txt/static/description/icon.png differ