From a9551e923e506c9455a6763610adbe7d6ab15a2b Mon Sep 17 00:00:00 2001 From: dsolanki Date: Fri, 8 Nov 2019 16:33:42 +0530 Subject: [PATCH] [MIG] account_move_line_report_xls: Migration to 11.0 --- account_move_line_report_xls/__init__.py | 1 - account_move_line_report_xls/__manifest__.py | 11 +- .../i18n/account_move_line_report_xls.pot | 223 ---------------- account_move_line_report_xls/i18n/fi.po | 225 ----------------- account_move_line_report_xls/i18n/fr.po | 239 ------------------ account_move_line_report_xls/i18n/nl.po | 237 ----------------- .../models/__init__.py | 1 - .../models/account_move_line.py | 8 +- .../readme/CONTRIBUTORS.rst | 2 + .../readme/CREDITS.rst | 1 + .../readme/DESCRIPTION.rst | 2 + .../readme/INSTALL.rst | 4 + account_move_line_report_xls/readme/USAGE.rst | 27 ++ .../report/__init__.py | 3 +- .../report/move_line_list_xls.xml | 20 -- ...ls.py => report_account_move_line_xlsx.py} | 24 +- .../report/report_account_move_line_xlsx.xml | 18 ++ .../tests/__init__.py | 1 - .../tests/test_aml_report_xlsx.py | 32 ++- 19 files changed, 94 insertions(+), 985 deletions(-) delete mode 100644 account_move_line_report_xls/i18n/account_move_line_report_xls.pot delete mode 100644 account_move_line_report_xls/i18n/fi.po delete mode 100644 account_move_line_report_xls/i18n/fr.po delete mode 100644 account_move_line_report_xls/i18n/nl.po create mode 100644 account_move_line_report_xls/readme/CONTRIBUTORS.rst create mode 100644 account_move_line_report_xls/readme/CREDITS.rst create mode 100644 account_move_line_report_xls/readme/DESCRIPTION.rst create mode 100644 account_move_line_report_xls/readme/INSTALL.rst create mode 100644 account_move_line_report_xls/readme/USAGE.rst delete mode 100644 account_move_line_report_xls/report/move_line_list_xls.xml rename account_move_line_report_xls/report/{move_line_list_xls.py => report_account_move_line_xlsx.py} (96%) create mode 100644 account_move_line_report_xls/report/report_account_move_line_xlsx.xml diff --git a/account_move_line_report_xls/__init__.py b/account_move_line_report_xls/__init__.py index a59de054..bb05a243 100644 --- a/account_move_line_report_xls/__init__.py +++ b/account_move_line_report_xls/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from . import models try: from . import report diff --git a/account_move_line_report_xls/__manifest__.py b/account_move_line_report_xls/__manifest__.py index dc1c0068..72a93715 100644 --- a/account_move_line_report_xls/__manifest__.py +++ b/account_move_line_report_xls/__manifest__.py @@ -1,17 +1,18 @@ -# -*- coding: utf-8 -*- # Copyright 2009-2018 Noviat. +# Copyright 2020 initOS GmbH # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Account Move Line XLSX export', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'license': 'AGPL-3', - 'author': "Noviat, Odoo Community Association (OCA)", + 'author': 'initOS GmbH, Noviat, Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/account-financial-reporting', 'category': 'Accounting & Finance', 'summary': 'Journal Items Excel export', - 'depends': ['account', 'report_xlsx_helper'], + 'depends': ['account_invoicing', 'report_xlsx_helper'], 'data': [ - 'report/move_line_list_xls.xml', + 'report/report_account_move_line_xlsx.xml', ], 'installable': True, } diff --git a/account_move_line_report_xls/i18n/account_move_line_report_xls.pot b/account_move_line_report_xls/i18n/account_move_line_report_xls.pot deleted file mode 100644 index 568bb142..00000000 --- a/account_move_line_report_xls/i18n/account_move_line_report_xls.pot +++ /dev/null @@ -1,223 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_move_line_report_xls -# -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: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:89 -#, python-format -msgid "Account" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:208 -#, python-format -msgid "Am. Currency" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:263 -#, python-format -msgid "Analytic Account" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:252 -#, python-format -msgid "Analytic Account Reference" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:142 -#, python-format -msgid "Balance" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:240 -#, python-format -msgid "Comp. Curr." -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:126 -#, python-format -msgid "Credit" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:219 -#, python-format -msgid "Curr." -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:110 -#, python-format -msgid "Debit" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:58 -#, python-format -msgid "Effective Date" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:31 -#, python-format -msgid "Entry" -msgstr "" - -#. module: account_move_line_report_xls -#: model:ir.actions.report.xml,name:account_move_line_report_xls.action_move_line_list_xls -msgid "Export Selected Lines" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:378 -#, python-format -msgid "Id" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:326 -#, python-format -msgid "Invoice" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:231 -#, python-format -msgid "Journal" -msgstr "" - -#. module: account_move_line_report_xls -#: model:ir.model,name:account_move_line_report_xls.model_account_move_line -msgid "Journal Item" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:390 -#, python-format -msgid "Journal Items" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:367 -#, python-format -msgid "Lit." -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:196 -#, python-format -msgid "Matched Credits" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:184 -#, python-format -msgid "Matched Debits" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:99 -#, python-format -msgid "Maturity Date" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:40 -#, python-format -msgid "Name" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:358 -#, python-format -msgid "Notes" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:69 -#, python-format -msgid "Partner" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:79 -#, python-format -msgid "Partner Reference" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:274 -#, python-format -msgid "Product" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:284 -#, python-format -msgid "Product Reference" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:305 -#, python-format -msgid "Qty" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:158 -#, python-format -msgid "Rec." -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:171 -#, python-format -msgid "Reconcile Amount" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:49 -#, python-format -msgid "Reference" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:347 -#, python-format -msgid "Res. Am. in Curr." -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:336 -#, python-format -msgid "Residual Amount" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:316 -#, python-format -msgid "Statement" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:295 -#, python-format -msgid "Unit of Measure" -msgstr "" - diff --git a/account_move_line_report_xls/i18n/fi.po b/account_move_line_report_xls/i18n/fi.po deleted file mode 100644 index 00103c70..00000000 --- a/account_move_line_report_xls/i18n/fi.po +++ /dev/null @@ -1,225 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_move_line_report_xls -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-07-23 13:43+0000\n" -"Last-Translator: Jarmo Kortetjärvi \n" -"Language-Team: none\n" -"Language: fi\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" -"X-Generator: Weblate 3.7.1\n" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:89 -#, python-format -msgid "Account" -msgstr "Tili" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:208 -#, python-format -msgid "Am. Currency" -msgstr "Määrä valuutassa" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:263 -#, python-format -msgid "Analytic Account" -msgstr "Kustannuspaikka" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:252 -#, python-format -msgid "Analytic Account Reference" -msgstr "Kustannuspaikan viite" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:142 -#, python-format -msgid "Balance" -msgstr "Saldo" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:240 -#, python-format -msgid "Comp. Curr." -msgstr "Laske tämänh." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:126 -#, python-format -msgid "Credit" -msgstr "Kredit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:219 -#, python-format -msgid "Curr." -msgstr "Tämänhetk." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:110 -#, python-format -msgid "Debit" -msgstr "Debet" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:58 -#, python-format -msgid "Effective Date" -msgstr "Voimaantulopäivä" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:31 -#, python-format -msgid "Entry" -msgstr "Vienti" - -#. module: account_move_line_report_xls -#: model:ir.actions.report.xml,name:account_move_line_report_xls.action_move_line_list_xls -msgid "Export Selected Lines" -msgstr "Vie valitut rivit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:378 -#, python-format -msgid "Id" -msgstr "Id" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:326 -#, python-format -msgid "Invoice" -msgstr "Lasku" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:231 -#, python-format -msgid "Journal" -msgstr "Päiväkirja" - -#. module: account_move_line_report_xls -#: model:ir.model,name:account_move_line_report_xls.model_account_move_line -msgid "Journal Item" -msgstr "Päiväkirjatapahtuma" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:390 -#, python-format -msgid "Journal Items" -msgstr "Päiväkirjan tapahtumat" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:367 -#, python-format -msgid "Lit." -msgstr "Tod." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:196 -#, python-format -msgid "Matched Credits" -msgstr "Täsmäävät kreditit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:184 -#, python-format -msgid "Matched Debits" -msgstr "Täsmäävät debetit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:99 -#, python-format -msgid "Maturity Date" -msgstr "Eräpäivä" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:40 -#, python-format -msgid "Name" -msgstr "Nimi" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:358 -#, python-format -msgid "Notes" -msgstr "Muistiinpanot" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:69 -#, python-format -msgid "Partner" -msgstr "Kumppani" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:79 -#, python-format -msgid "Partner Reference" -msgstr "Kumppanin viite" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:274 -#, python-format -msgid "Product" -msgstr "Tuote" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:284 -#, python-format -msgid "Product Reference" -msgstr "Tuotteen viite" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:305 -#, python-format -msgid "Qty" -msgstr "Määrä" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:158 -#, python-format -msgid "Rec." -msgstr "Tietue" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:171 -#, python-format -msgid "Reconcile Amount" -msgstr "Hyvityksen määrä" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:49 -#, python-format -msgid "Reference" -msgstr "Viite" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:347 -#, python-format -msgid "Res. Am. in Curr." -msgstr "Määrä valuutassa." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:336 -#, python-format -msgid "Residual Amount" -msgstr "Ylijäämä" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:316 -#, python-format -msgid "Statement" -msgstr "Tiliote" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:295 -#, python-format -msgid "Unit of Measure" -msgstr "Mittayksikkö" diff --git a/account_move_line_report_xls/i18n/fr.po b/account_move_line_report_xls/i18n/fr.po deleted file mode 100644 index 42c072bb..00000000 --- a/account_move_line_report_xls/i18n/fr.po +++ /dev/null @@ -1,239 +0,0 @@ -# French translation of Odoo. -# This file contains the translation of the following modules: -# * account_move_line_report_xls -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-05-16 12:31:16.568000\n" -"PO-Revision-Date: 2019-05-02 17:02+0000\n" -"Last-Translator: Katerina Katapodi \n" -"Language-Team: \n" -"Language: fr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.5.1\n" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:89 -#, python-format -msgid "Account" -msgstr "Compte" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:208 -#, python-format -msgid "Am. Currency" -msgstr "Montant devise" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:263 -#, python-format -msgid "Analytic Account" -msgstr "Compte analytique" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:252 -#, python-format -msgid "Analytic Account Reference" -msgstr "Référence compte analytique" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:142 -#, python-format -msgid "Balance" -msgstr "Solde" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:240 -#, python-format -msgid "Comp. Curr." -msgstr "Dev. Soc." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:126 -#, python-format -msgid "Credit" -msgstr "Crédit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:219 -#, python-format -msgid "Curr." -msgstr "Dev." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:110 -#, python-format -msgid "Debit" -msgstr "Débit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:58 -#, python-format -msgid "Effective Date" -msgstr "Date" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:31 -#, python-format -msgid "Entry" -msgstr "Écriture" - -#. module: account_move_line_report_xls -#: model:ir.actions.report.xml,name:account_move_line_report_xls.action_move_line_list_xls -msgid "Export Selected Lines" -msgstr "Exportez les Lignes Selectionnees" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:378 -#, python-format -msgid "Id" -msgstr "Id" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:326 -#, python-format -msgid "Invoice" -msgstr "Facture" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:231 -#, python-format -msgid "Journal" -msgstr "Journal" - -#. module: account_move_line_report_xls -#: model:ir.model,name:account_move_line_report_xls.model_account_move_line -#, fuzzy -msgid "Journal Item" -msgstr "Écritures comptables" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:390 -#, python-format -msgid "Journal Items" -msgstr "Écritures comptables" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:367 -#, python-format -msgid "Lit." -msgstr "Lit." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:196 -#, python-format -msgid "Matched Credits" -msgstr "Credits Ajustes" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:184 -#, python-format -msgid "Matched Debits" -msgstr "Debits Ajustes" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:99 -#, python-format -msgid "Maturity Date" -msgstr "Date d'échéance" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:40 -#, python-format -msgid "Name" -msgstr "Nom" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:358 -#, python-format -msgid "Notes" -msgstr "Notes" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:69 -#, python-format -msgid "Partner" -msgstr "Partenaire" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:79 -#, python-format -msgid "Partner Reference" -msgstr "Réf. Partenaire" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:274 -#, python-format -msgid "Product" -msgstr "Article" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:284 -#, python-format -msgid "Product Reference" -msgstr "Réf. Article" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:305 -#, python-format -msgid "Qty" -msgstr "Qty" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:158 -#, python-format -msgid "Rec." -msgstr "Let." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:171 -#, python-format -msgid "Reconcile Amount" -msgstr "Montant Residuel (Solde du Compte)" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:49 -#, python-format -msgid "Reference" -msgstr "Référence" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:347 -#, python-format -msgid "Res. Am. in Curr." -msgstr "Montant résiduel en dev." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:336 -#, python-format -msgid "Residual Amount" -msgstr "Montant résiduel" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:316 -#, python-format -msgid "Statement" -msgstr "Relevé" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:295 -#, python-format -msgid "Unit of Measure" -msgstr "Unité de mesure" - -#~ msgid "Period" -#~ msgstr "Période" - -#~ msgid "Part. Rec." -#~ msgstr "Let. Part." - -#~ msgid "Tax Code" -#~ msgstr "Case TVA" - -#~ msgid "Tax/Base Amount" -#~ msgstr "Montant TVA/Base" diff --git a/account_move_line_report_xls/i18n/nl.po b/account_move_line_report_xls/i18n/nl.po deleted file mode 100644 index 5c7c2a4f..00000000 --- a/account_move_line_report_xls/i18n/nl.po +++ /dev/null @@ -1,237 +0,0 @@ -# Dutch translation of Odoo. -# This file contains the translation of the following modules: -# * account_move_line_report_xls -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-05-16 12:31:16.564000\n" -"PO-Revision-Date: 2016-05-16 12:31:16.564000\n" -"Last-Translator: Luc De Meyer (Noviat nv/sa)\n" -"Language-Team: \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:89 -#, python-format -msgid "Account" -msgstr "Rekening" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:208 -#, python-format -msgid "Am. Currency" -msgstr "Bedrag valuta" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:263 -#, python-format -msgid "Analytic Account" -msgstr "Kostenplaats" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:252 -#, python-format -msgid "Analytic Account Reference" -msgstr "Kostenplaats referentie" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:142 -#, python-format -msgid "Balance" -msgstr "Saldo" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:240 -#, python-format -msgid "Comp. Curr." -msgstr "Bedr. Val." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:126 -#, python-format -msgid "Credit" -msgstr "Credit" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:219 -#, python-format -msgid "Curr." -msgstr "Val." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:110 -#, python-format -msgid "Debit" -msgstr "Debet" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:58 -#, python-format -msgid "Effective Date" -msgstr "Datum" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:31 -#, python-format -msgid "Entry" -msgstr "Boeking" - -#. module: account_move_line_report_xls -#: model:ir.actions.report.xml,name:account_move_line_report_xls.action_move_line_list_xls -msgid "Export Selected Lines" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:378 -#, python-format -msgid "Id" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:326 -#, python-format -msgid "Invoice" -msgstr "Factuur" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:231 -#, python-format -msgid "Journal" -msgstr "Dagboek" - -#. module: account_move_line_report_xls -#: model:ir.model,name:account_move_line_report_xls.model_account_move_line -#, fuzzy -msgid "Journal Item" -msgstr "Boekingsregels" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:390 -#, python-format -msgid "Journal Items" -msgstr "Boekingsregels" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:367 -#, python-format -msgid "Lit." -msgstr "Lit." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:196 -#, python-format -msgid "Matched Credits" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:184 -#, python-format -msgid "Matched Debits" -msgstr "" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:99 -#, python-format -msgid "Maturity Date" -msgstr "Vervaldatum" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:40 -#, python-format -msgid "Name" -msgstr "Naam" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:358 -#, python-format -msgid "Notes" -msgstr "Notities" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:69 -#, python-format -msgid "Partner" -msgstr "Partner" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:79 -#, python-format -msgid "Partner Reference" -msgstr "Ref. Partner" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:274 -#, python-format -msgid "Product" -msgstr "Product" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:284 -#, python-format -msgid "Product Reference" -msgstr "Ref. Product" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:305 -#, python-format -msgid "Qty" -msgstr "HvH" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:158 -#, python-format -msgid "Rec." -msgstr "Rec." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:171 -#, fuzzy, python-format -msgid "Reconcile Amount" -msgstr "Restbedrag" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:49 -#, python-format -msgid "Reference" -msgstr "Referentie" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:347 -#, python-format -msgid "Res. Am. in Curr." -msgstr "Restbedrag in val." - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:336 -#, python-format -msgid "Residual Amount" -msgstr "Restbedrag" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:316 -#, python-format -msgid "Statement" -msgstr "Uitreksel" - -#. module: account_move_line_report_xls -#: code:addons/account_move_line_report_xls/report/move_line_list_xls.py:295 -#, python-format -msgid "Unit of Measure" -msgstr "Maateenheid" - -#~ msgid "Period" -#~ msgstr "Periode" - -#~ msgid "Part. Rec." -#~ msgstr "Rec. Part." - -#~ msgid "Tax Code" -#~ msgstr "BTW vak" - -#~ msgid "Tax/Base Amount" -#~ msgstr "Bedrag BTW/Mvh" diff --git a/account_move_line_report_xls/models/__init__.py b/account_move_line_report_xls/models/__init__.py index d32a961a..8795b3be 100644 --- a/account_move_line_report_xls/models/__init__.py +++ b/account_move_line_report_xls/models/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- from . import account_move_line diff --git a/account_move_line_report_xls/models/account_move_line.py b/account_move_line_report_xls/models/account_move_line.py index 7969b919..3d848b9b 100644 --- a/account_move_line_report_xls/models/account_move_line.py +++ b/account_move_line_report_xls/models/account_move_line.py @@ -1,11 +1,11 @@ -# -*- coding: utf-8 -*- # Copyright 2009-2018 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, models -from odoo.addons.report_xlsx_helper.report.abstract_report_xlsx \ - import AbstractReportXlsx -_render = AbstractReportXlsx._render +from odoo.addons.report_xlsx_helper.report.report_xlsx_abstract import \ + ReportXlsxAbstract + +_render = ReportXlsxAbstract._render class AccountMoveLine(models.Model): diff --git a/account_move_line_report_xls/readme/CONTRIBUTORS.rst b/account_move_line_report_xls/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..31cdadbe --- /dev/null +++ b/account_move_line_report_xls/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Guillaume Auger +* Foram Shah diff --git a/account_move_line_report_xls/readme/CREDITS.rst b/account_move_line_report_xls/readme/CREDITS.rst new file mode 100644 index 00000000..7a06f096 --- /dev/null +++ b/account_move_line_report_xls/readme/CREDITS.rst @@ -0,0 +1 @@ +* Luc De Meyer, Noviat diff --git a/account_move_line_report_xls/readme/DESCRIPTION.rst b/account_move_line_report_xls/readme/DESCRIPTION.rst new file mode 100644 index 00000000..7c2b7bd0 --- /dev/null +++ b/account_move_line_report_xls/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module extends the functionality of the journal items +('account.move.line') list view and allow you to export the selected lines. diff --git a/account_move_line_report_xls/readme/INSTALL.rst b/account_move_line_report_xls/readme/INSTALL.rst new file mode 100644 index 00000000..fe43a1b2 --- /dev/null +++ b/account_move_line_report_xls/readme/INSTALL.rst @@ -0,0 +1,4 @@ +To install this module, you need also the **report_xlsx_helper** +module located in: + +https://github.com/OCA/reporting-engine diff --git a/account_move_line_report_xls/readme/USAGE.rst b/account_move_line_report_xls/readme/USAGE.rst new file mode 100644 index 00000000..c158eab4 --- /dev/null +++ b/account_move_line_report_xls/readme/USAGE.rst @@ -0,0 +1,27 @@ +To use this module, you need to: + +* go to the list view of the journal items +* select the lines you wish to export +* click on the button on top to export + +The Excel export can be tailored to your exact needs via the following methods +of the 'account.move.line' object: + +* **_report_xls_fields** + + Add/drop columns or change order from the list of columns that are defined + in the Excel template. + + The following fields are defined in the Excel template: + + move, name, date, journal, period, partner, account, + date_maturity, debit, credit, balance, + reconcile, reconcile_partial, analytic_account, + ref, partner_ref, tax_code, tax_amount, amount_residual, + amount_currency, currency_name, company_currency, + amount_residual_currency, product, product_ref', product_uom, quantity, + statement, invoice, narration, blocked + +* **_report_xls_template** + + Change/extend the Excel template. diff --git a/account_move_line_report_xls/report/__init__.py b/account_move_line_report_xls/report/__init__.py index 28addd91..0548a946 100644 --- a/account_move_line_report_xls/report/__init__.py +++ b/account_move_line_report_xls/report/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- -from . import move_line_list_xls +from . import report_account_move_line_xlsx diff --git a/account_move_line_report_xls/report/move_line_list_xls.xml b/account_move_line_report_xls/report/move_line_list_xls.xml deleted file mode 100644 index 3b9c8e64..00000000 --- a/account_move_line_report_xls/report/move_line_list_xls.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Export Selected Lines - account.move.line - ir.actions.report.xml - move.line.list.xls - xlsx - - - - - Export Selected Lines - client_action_multi - - account.move.line - - - diff --git a/account_move_line_report_xls/report/move_line_list_xls.py b/account_move_line_report_xls/report/report_account_move_line_xlsx.py similarity index 96% rename from account_move_line_report_xls/report/move_line_list_xls.py rename to account_move_line_report_xls/report/report_account_move_line_xlsx.py index bf6d4c15..34d62172 100644 --- a/account_move_line_report_xls/report/move_line_list_xls.py +++ b/account_move_line_report_xls/report/report_account_move_line_xlsx.py @@ -1,26 +1,17 @@ -# -*- coding: utf-8 -*- # Copyright 2009-2018 Noviat +# Copyright 2020 initOS GmbH # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging -from odoo.addons.report_xlsx_helper.report.abstract_report_xlsx \ - import AbstractReportXlsx -from odoo.report import report_sxw -from odoo.tools.translate import translate +from odoo import models _logger = logging.getLogger(__name__) -IR_TRANSLATION_NAME = 'move.line.list.xls' - -class MoveLineXlsx(AbstractReportXlsx): - - def _(self, src): - lang = self.env.context.get('lang', 'en_US') - val = translate( - self.env.cr, IR_TRANSLATION_NAME, 'report', lang, src) or src - return val +class MoveLineXlsx(models.AbstractModel): + _name = 'report.account_move_line_report_xls.account_move_line_xlsx' + _inherit = 'report.report_xlsx.abstract' def _get_ws_params(self, workbook, data, amls): @@ -443,8 +434,3 @@ class MoveLineXlsx(AbstractReportXlsx): 'bal_formula': bal_formula, }, default_format=self.format_theader_yellow_left) - - -MoveLineXlsx('report.move.line.list.xls', - 'account.move.line', - parser=report_sxw.rml_parse) diff --git a/account_move_line_report_xls/report/report_account_move_line_xlsx.xml b/account_move_line_report_xls/report/report_account_move_line_xlsx.xml new file mode 100644 index 00000000..d1880f50 --- /dev/null +++ b/account_move_line_report_xls/report/report_account_move_line_xlsx.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/account_move_line_report_xls/tests/__init__.py b/account_move_line_report_xls/tests/__init__.py index 19415be6..f1626769 100644 --- a/account_move_line_report_xls/tests/__init__.py +++ b/account_move_line_report_xls/tests/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- from . import test_aml_report_xlsx diff --git a/account_move_line_report_xls/tests/test_aml_report_xlsx.py b/account_move_line_report_xls/tests/test_aml_report_xlsx.py index 3549bdde..57880561 100644 --- a/account_move_line_report_xls/tests/test_aml_report_xlsx.py +++ b/account_move_line_report_xls/tests/test_aml_report_xlsx.py @@ -1,5 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2009-2018 Noviat. +# Copyright 2020 initOS GmbH # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests.common import TransactionCase @@ -9,13 +9,29 @@ class TestAmlReportXlsx(TransactionCase): def setUp(self): super(TestAmlReportXlsx, self).setUp() - ctx = {'xlsx_export': True} - self.report = self.env['ir.actions.report.xml'].with_context(ctx) - self.report_name = 'move.line.list.xls' - inv = self.env.ref('l10n_generic_coa.demo_invoice_1') - self.amls = inv.move_id.line_ids + self.report = self.env.ref( + 'account_move_line_report_xls.action_account_move_line_xlsx') + sale_journal = self.env['account.journal'].search( + [('type', '=', 'sale')])[0] + ar = self.env['account.account'].search( + [('internal_type', '=', 'receivable')])[0] + aml_vals = [ + {'name': 'debit', + 'debit': 100, + 'account_id': ar.id, + }, + {'name': 'credit', + 'credit': 100, + 'account_id': ar.id, + }, + ] + am = self.env['account.move'].create({ + 'name': 'test', + 'journal_id': sale_journal.id, + 'line_ids': [(0, 0, x) for x in aml_vals], + }) + self.amls = am.line_ids def test_aml_report_xlsx(self): - report_xls = self.report.render_report( - self.amls.ids, self.report_name, {}) + report_xls = self.report.render_xlsx(self.amls.ids, None) self.assertEqual(report_xls[1], 'xlsx')