Merge PR #342 into 11.0

Signed-off-by dreispt
This commit is contained in:
OCA-git-bot
2020-07-19 22:12:57 +00:00
32 changed files with 942 additions and 0 deletions

View File

@@ -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.

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -0,0 +1,18 @@
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# 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,
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<report id="res_users_csv"
model="res.users"
name="report_qweb_txt.report_res_users_csv"
string="CSV List"
report_type="qweb-txt-csv"
file="report_qweb_txt.report_res_users_csv"
/>
</odoo>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_res_users_csv">name,login,last_login_date,lang
<t t-foreach="docs" t-as="o"><t t-esc="o.name"/>,<t t-esc="o.login"/>,<t t-esc="o.login_date"/>,<t t-esc="o.lang"/>
</t>
</template>
</odoo>

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -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 <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2018
# OCA Transbot <transbot@odoo-community.org>, 2018
# enjolras <yo@miguelrevilla.com>, 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 <yo@miguelrevilla.com>, 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"

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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 ""

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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 ""

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 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 <hageman.p@gmail.com>, 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 ""

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_txt
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1 @@
from . import ir_actions_report

View File

@@ -0,0 +1,35 @@
# © 2016-2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# 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)

View File

@@ -0,0 +1,2 @@
* Alexis de Lattre <alexis.delattre@akretion.com>
* Daniel Reis <dreis@opensourceintegrators.com>

View File

@@ -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, ...).

View File

@@ -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 <https://github.com/akretion/dilicom>`_ (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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB