Merge PR #989 into 15.0

Signed-off-by gurneyalex
pull/1095/head
OCA-git-bot 2024-01-03 13:36:44 +00:00
commit 6accfa3ee9
21 changed files with 1978 additions and 0 deletions

View File

@ -0,0 +1,105 @@
=============================
Account Move Line XLSX export
=============================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-reporting/tree/14.0/account_move_line_report_xls
:alt: OCA/account-financial-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-reporting-14-0/account-financial-reporting-14-0-account_move_line_report_xls
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/91/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module extends the functionality of the journal items
('account.move.line') list view and allow you to export the selected lines.
**Table of contents**
.. contents::
:local:
Usage
=====
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_xlsx_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_xlsx_template**
Change/extend the Excel template.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_move_line_report_xls%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Noviat
Contributors
~~~~~~~~~~~~
* Luc De Meyer <luc.demeyer@noviat.com>
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/14.0/account_move_line_report_xls>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1,11 @@
from . import models
try:
from . import report
except ImportError:
import logging
logging.getLogger("odoo.module").warning(
"""report_xlsx_helper not available in addons path.
account_move_line_report_xls will not be usable"""
)

View File

@ -0,0 +1,15 @@
# Copyright 2009-2020 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Move Line XLSX export",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Noviat, Odoo Community Association (OCA)",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-financial-reporting",
"summary": "Journal Items Excel export",
"depends": ["account", "report_xlsx_helper"],
"data": ["report/account_move_line_xlsx.xml"],
"installable": True,
}

View File

@ -0,0 +1,245 @@
# 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 14.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/account_move_line_xlsx.py:0
#, python-format
msgid "Account"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Am. Currency"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Analytic Account"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Analytic Account Reference"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Balance"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Comp. Curr."
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Credit"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Curr."
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Debit"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line__display_name
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx__display_name
msgid "Display Name"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Effective Date"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Entry"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.actions.report,name:account_move_line_report_xls.action_account_move_line_xlsx
msgid "Export Selected Lines"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line__id
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx__id
msgid "ID"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Id"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Invoice"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, 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/account_move_line_xlsx.py:0
#, python-format
msgid "Journal Items"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line____last_update
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx____last_update
msgid "Last Modified on"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Lit."
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Matched Credits"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Matched Debits"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Maturity Date"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Name"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Notes"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Partner"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Partner Reference"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Product"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Product Reference"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Qty"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Rec."
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Reconcile Amount"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Reference"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Res. Am. in Curr."
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Residual Amount"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Statement"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Unit of Measure"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.model,name:account_move_line_report_xls.model_report_account_move_line_report_xls_account_move_line_xlsx
msgid "XLSX report for account move lines."
msgstr ""

View File

@ -0,0 +1,260 @@
# 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: 2016-05-16 12:31:16.568000\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/account_move_line_xlsx.py:0
#, python-format
msgid "Account"
msgstr "Compte"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Am. Currency"
msgstr "Montant devise"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Analytic Account"
msgstr "Compte analytique"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, 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/account_move_line_xlsx.py:0
#, python-format
msgid "Balance"
msgstr "Solde"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Comp. Curr."
msgstr "Dev. Soc."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Credit"
msgstr "Crédit"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Curr."
msgstr "Dev."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Debit"
msgstr "Débit"
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line__display_name
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx__display_name
msgid "Display Name"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Effective Date"
msgstr "Date"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Entry"
msgstr "Écriture"
#. module: account_move_line_report_xls
#: model:ir.actions.report,name:account_move_line_report_xls.action_account_move_line_xlsx
msgid "Export Selected Lines"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line__id
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx__id
msgid "ID"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Id"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Invoice"
msgstr "Facture"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, 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/account_move_line_xlsx.py:0
#, python-format
msgid "Journal Items"
msgstr "Écritures comptables"
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line____last_update
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx____last_update
msgid "Last Modified on"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Lit."
msgstr "Lit."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Matched Credits"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Matched Debits"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Maturity Date"
msgstr "Date d'échéance"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Name"
msgstr "Nom"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Notes"
msgstr "Notes"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Partner"
msgstr "Partenaire"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Partner Reference"
msgstr "Réf. Partenaire"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Product"
msgstr "Article"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Product Reference"
msgstr "Réf. Article"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Qty"
msgstr "Qty"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Rec."
msgstr "Let."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, fuzzy, python-format
msgid "Reconcile Amount"
msgstr "Montant résiduel"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Reference"
msgstr "Référence"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, 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/account_move_line_xlsx.py:0
#, python-format
msgid "Residual Amount"
msgstr "Montant résiduel"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Statement"
msgstr "Relevé"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Unit of Measure"
msgstr "Unité de mesure"
#. module: account_move_line_report_xls
#: model:ir.model,name:account_move_line_report_xls.model_report_account_move_line_report_xls_account_move_line_xlsx
msgid "XLSX report for account move lines."
msgstr ""
#~ 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"

View File

@ -0,0 +1,260 @@
# 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/account_move_line_xlsx.py:0
#, python-format
msgid "Account"
msgstr "Rekening"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Am. Currency"
msgstr "Bedrag valuta"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Analytic Account"
msgstr "Kostenplaats"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Analytic Account Reference"
msgstr "Kostenplaats referentie"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Balance"
msgstr "Saldo"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Comp. Curr."
msgstr "Bedr. Val."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Credit"
msgstr "Credit"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Curr."
msgstr "Val."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Debit"
msgstr "Debet"
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line__display_name
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx__display_name
msgid "Display Name"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Effective Date"
msgstr "Datum"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Entry"
msgstr "Boeking"
#. module: account_move_line_report_xls
#: model:ir.actions.report,name:account_move_line_report_xls.action_account_move_line_xlsx
msgid "Export Selected Lines"
msgstr ""
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line__id
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx__id
msgid "ID"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Id"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Invoice"
msgstr "Factuur"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, 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/account_move_line_xlsx.py:0
#, python-format
msgid "Journal Items"
msgstr "Boekingsregels"
#. module: account_move_line_report_xls
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_account_move_line____last_update
#: model:ir.model.fields,field_description:account_move_line_report_xls.field_report_account_move_line_report_xls_account_move_line_xlsx____last_update
msgid "Last Modified on"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Lit."
msgstr "Lit."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Matched Credits"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Matched Debits"
msgstr ""
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Maturity Date"
msgstr "Vervaldatum"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Name"
msgstr "Naam"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Notes"
msgstr "Notities"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Partner"
msgstr "Partner"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Partner Reference"
msgstr "Ref. Partner"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Product"
msgstr "Product"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Product Reference"
msgstr "Ref. Product"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Qty"
msgstr "HvH"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Rec."
msgstr "Rec."
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, fuzzy, python-format
msgid "Reconcile Amount"
msgstr "Restbedrag"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Reference"
msgstr "Referentie"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, 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/account_move_line_xlsx.py:0
#, python-format
msgid "Residual Amount"
msgstr "Restbedrag"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Statement"
msgstr "Uitreksel"
#. module: account_move_line_report_xls
#: code:addons/account_move_line_report_xls/report/account_move_line_xlsx.py:0
#, python-format
msgid "Unit of Measure"
msgstr "Maateenheid"
#. module: account_move_line_report_xls
#: model:ir.model,name:account_move_line_report_xls.model_report_account_move_line_report_xls_account_move_line_xlsx
msgid "XLSX report for account move lines."
msgstr ""
#~ msgid "Period"
#~ msgstr "Periode"
#~ msgid "Part. Rec."
#~ msgstr "Rec. Part."
#~ msgid "Tax Code"
#~ msgstr "BTW vak"
#~ msgid "Tax/Base Amount"
#~ msgstr "Bedrag BTW/Mvh"

View File

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

View File

@ -0,0 +1,60 @@
# Copyright 2009-2020 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.report_xlsx_abstract import (
ReportXlsxAbstract,
)
_render = ReportXlsxAbstract._render
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
# Change list in custom module e.g. to add/drop columns or change order
@api.model
def _report_xlsx_fields(self):
return [
"move",
"name",
"date",
"journal",
"partner",
"account",
"date_maturity",
"debit",
"credit",
"balance",
"full_reconcile",
"reconcile_amount",
# 'analytic_account_name', 'analytic_account',
# 'ref', 'partner_ref',
# 'amount_residual', 'amount_currency', 'currency_name',
# 'company_currency', 'amount_residual_currency',
# 'product', 'product_ref', 'product_uom', 'quantity',
# 'statement', 'invoice', 'narration', 'blocked',
# 'id', 'matched_debit_ids', 'matched_credit_ids',
]
# Change/Add Template entries
@api.model
def _report_xlsx_template(self):
"""
Template updates, e.g.
my_change = {
'move': {
'header': {
'value': 'My Move Title',
},
'lines': {
'value': _render("line.move_id.name or ''"),
},
'width': 20,
},
}
return my_change
"""
return {}

View File

@ -0,0 +1 @@
* Luc De Meyer <luc.demeyer@noviat.com>

View File

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

View File

@ -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_xlsx_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_xlsx_template**
Change/extend the Excel template.

View File

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

View File

@ -0,0 +1,405 @@
# Copyright 2009-2020 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import models
from odoo.tools.translate import translate
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import (
FORMATS,
XLS_HEADERS,
)
_logger = logging.getLogger(__name__)
IR_TRANSLATION_NAME = "move.line.list.xls"
class AccountMoveLineXlsx(models.AbstractModel):
_name = "report.account_move_line_report_xls.account_move_line_xlsx"
_inherit = "report.report_xlsx.abstract"
_description = "XLSX report for account move lines."
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
def _get_ws_params(self, workbook, data, amls):
# XLSX Template
col_specs = {
"move": {
"header": {"value": self._("Entry")},
"lines": {"value": self._render("line.move_id.name")},
"width": 20,
},
"name": {
"header": {"value": self._("Name")},
"lines": {"value": self._render("line.name")},
"width": 42,
},
"ref": {
"header": {"value": self._("Reference")},
"lines": {"value": self._render("line.ref")},
"width": 42,
},
"date": {
"header": {"value": self._("Effective Date")},
"lines": {
"value": self._render("line.date"),
"format": FORMATS["format_tcell_date_left"],
},
"width": 13,
},
"partner": {
"header": {"value": self._("Partner")},
"lines": {
"value": self._render("line.partner_id and line.partner_id.name")
},
"width": 36,
},
"partner_ref": {
"header": {"value": self._("Partner Reference")},
"lines": {
"value": self._render("line.partner_id and line.partner_id.ref")
},
"width": 36,
},
"account": {
"header": {"value": self._("Account")},
"lines": {"value": self._render("line.account_id.code")},
"width": 12,
},
"date_maturity": {
"header": {"value": self._("Maturity Date")},
"lines": {
"value": self._render("line.date_maturity"),
"format": FORMATS["format_tcell_date_left"],
},
"width": 13,
},
"debit": {
"header": {
"value": self._("Debit"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.debit"),
"format": FORMATS["format_tcell_amount_right"],
},
"totals": {
"type": "formula",
"value": self._render("debit_formula"),
"format": FORMATS["format_theader_yellow_amount_right"],
},
"width": 18,
},
"credit": {
"header": {
"value": self._("Credit"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.credit"),
"format": FORMATS["format_tcell_amount_right"],
},
"totals": {
"type": "formula",
"value": self._render("credit_formula"),
"format": FORMATS["format_theader_yellow_amount_right"],
},
"width": 18,
},
"balance": {
"header": {
"value": self._("Balance"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.balance"),
"format": FORMATS["format_tcell_amount_right"],
},
"totals": {
"type": "formula",
"value": self._render("bal_formula"),
"format": FORMATS["format_theader_yellow_amount_right"],
},
"width": 18,
},
"full_reconcile": {
"header": {
"value": self._("Rec."),
"format": FORMATS["format_theader_yellow_center"],
},
"lines": {
"value": self._render(
"line.full_reconcile_id " "and line.full_reconcile_id.name"
),
"format": FORMATS["format_tcell_center"],
},
"width": 12,
},
"reconcile_amount": {
"header": {"value": self._("Reconcile Amount")},
"lines": {
"value": self._render(
"line.full_reconcile_id and line.balance or "
"(sum(line.matched_credit_ids.mapped('amount')) - "
"sum(line.matched_debit_ids.mapped('amount')))"
),
"format": FORMATS["format_tcell_amount_right"],
},
"width": 12,
},
"matched_debit_ids": {
"header": {"value": self._("Matched Debits")},
"lines": {
"value": self._render(
"line.matched_debit_ids "
"and str([x.debit_move_id.id "
"for x in line.matched_debit_ids])"
)
},
"width": 20,
},
"matched_credit_ids": {
"header": {"value": self._("Matched Credits")},
"lines": {
"value": self._render(
"line.matched_credit_ids "
"and str([x.credit_move_id.id "
"for x in line.matched_credit_ids])"
)
},
"width": 20,
},
"amount_currency": {
"header": {
"value": self._("Am. Currency"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.amount_currency"),
"format": FORMATS["format_tcell_amount_right"],
},
"width": 18,
},
"currency_name": {
"header": {
"value": self._("Curr."),
"format": FORMATS["format_theader_yellow_center"],
},
"lines": {
"value": self._render("line.currency_id and line.currency_id.name"),
"format": FORMATS["format_tcell_center"],
},
"width": 6,
},
"journal": {
"header": {"value": self._("Journal")},
"lines": {"value": self._render("line.journal_id.code")},
"width": 12,
},
"company_currency": {
"header": {
"value": self._("Comp. Curr."),
"format": FORMATS["format_theader_yellow_center"],
},
"lines": {
"value": self._render("line.company_id.currency_id.name"),
"format": FORMATS["format_tcell_center"],
},
"width": 10,
},
"analytic_account": {
"header": {"value": self._("Analytic Account Reference")},
"lines": {
"value": self._render(
"line.analytic_account_id " "and line.analytic_account_id.code"
)
},
"width": 36,
},
"analytic_account_name": {
"header": {"value": self._("Analytic Account")},
"lines": {
"value": self._render(
"line.analytic_account_id " "and line.analytic_account_id.name"
)
},
"width": 36,
},
"product": {
"header": {"value": self._("Product")},
"lines": {
"value": self._render("line.product_id and line.product_id.name")
},
"width": 36,
},
"product_ref": {
"header": {"value": self._("Product Reference")},
"lines": {
"value": self._render(
"line.product_id and line.product_id.default_code " "or ''"
)
},
"width": 36,
},
"product_uom": {
"header": {"value": self._("Unit of Measure")},
"lines": {
"value": self._render(
"line.product_uom_id and line.product_uom_id.name"
)
},
"width": 20,
},
"quantity": {
"header": {
"value": self._("Qty"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.quantity"),
"format": FORMATS["format_tcell_amount_right"],
},
"width": 8,
},
"statement": {
"header": {"value": self._("Statement")},
"lines": {
"value": self._render(
"line.statement_id and line.statement_id.name"
)
},
"width": 20,
},
"invoice": {
"header": {"value": self._("Invoice")},
"lines": {"value": self._render("line.move_id and line.move_id.name")},
"width": 20,
},
"amount_residual": {
"header": {
"value": self._("Residual Amount"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.amount_residual"),
"format": FORMATS["format_tcell_amount_right"],
},
"width": 18,
},
"amount_residual_currency": {
"header": {
"value": self._("Res. Am. in Curr."),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.amount_residual_currency"),
"format": FORMATS["format_tcell_amount_right"],
},
"width": 18,
},
"narration": {
"header": {"value": self._("Notes")},
"lines": {"value": self._render("line.move_id.narration or ''")},
"width": 42,
},
"blocked": {
"header": {
"value": self._("Lit."),
"format": FORMATS["format_theader_yellow_center"],
},
"lines": {
"value": self._render("line.blocked and 'x' or ''"),
"format": FORMATS["format_tcell_center"],
},
"width": 4,
},
"id": {
"header": {
"value": self._("Id"),
"format": FORMATS["format_theader_yellow_right"],
},
"lines": {
"value": self._render("line.id"),
"format": FORMATS["format_tcell_integer_right"],
},
"width": 12,
},
}
col_specs.update(self.env["account.move.line"]._report_xlsx_template())
wanted_list = self.env["account.move.line"]._report_xlsx_fields()
title = self._("Journal Items")
return [
{
"ws_name": title,
"generate_ws_method": "_amls_export",
"title": title,
"wanted_list": wanted_list,
"col_specs": col_specs,
}
]
def _amls_export(self, workbook, ws, ws_params, data, amls):
ws.set_landscape()
ws.fit_to_pages(1, 0)
ws.set_header(XLS_HEADERS["xls_headers"]["standard"])
ws.set_footer(XLS_HEADERS["xls_footers"]["standard"])
self._set_column_width(ws, ws_params)
row_pos = 0
row_pos = self._write_ws_title(ws, row_pos, ws_params)
row_pos = self._write_line(
ws,
row_pos,
ws_params,
col_specs_section="header",
default_format=FORMATS["format_theader_yellow_left"],
)
ws.freeze_panes(row_pos, 0)
wanted_list = ws_params["wanted_list"]
debit_pos = "debit" in wanted_list and wanted_list.index("debit")
credit_pos = "credit" in wanted_list and wanted_list.index("credit")
for line in amls:
row_pos = self._write_line(
ws,
row_pos,
ws_params,
col_specs_section="lines",
render_space={"line": line},
default_format=FORMATS["format_tcell_left"],
)
aml_cnt = len(amls)
debit_start = self._rowcol_to_cell(row_pos - aml_cnt, debit_pos)
debit_stop = self._rowcol_to_cell(row_pos - 1, debit_pos)
debit_formula = "SUM({}:{})".format(debit_start, debit_stop)
credit_start = self._rowcol_to_cell(row_pos - aml_cnt, credit_pos)
credit_stop = self._rowcol_to_cell(row_pos - 1, credit_pos)
credit_formula = "SUM({}:{})".format(credit_start, credit_stop)
debit_cell = self._rowcol_to_cell(row_pos, debit_pos)
credit_cell = self._rowcol_to_cell(row_pos, credit_pos)
bal_formula = debit_cell + "-" + credit_cell
row_pos = self._write_line(
ws,
row_pos,
ws_params,
col_specs_section="totals",
render_space={
"debit_formula": debit_formula,
"credit_formula": credit_formula,
"bal_formula": bal_formula,
},
default_format=FORMATS["format_theader_yellow_left"],
)

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="action_account_move_line_xlsx" model="ir.actions.report">
<field name="name">Export Selected Lines</field>
<field name="model">account.move.line</field>
<field name="type">ir.actions.report</field>
<field name="binding_type">action</field>
<field name="binding_model_id" ref="account.model_account_move_line" />
<field
name="report_name"
>account_move_line_report_xls.account_move_line_xlsx</field>
<field name="report_file">account_move_line</field>
<field name="report_type">xlsx</field>
</record>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,451 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Account Move Line XLSX export</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="account-move-line-xlsx-export">
<h1 class="title">Account Move Line XLSX export</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/14.0/account_move_line_report_xls"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-reporting-14-0/account-financial-reporting-14-0-account_move_line_report_xls"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/91/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of the journal items
(account.move.line) list view and allow you to export the selected lines.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ul class="simple">
<li>go to the list view of the journal items</li>
<li>select the lines you wish to export</li>
<li>click on the button on top to export</li>
</ul>
<p>The Excel export can be tailored to your exact needs via the following methods
of the account.move.line object:</p>
<ul>
<li><p class="first"><strong>_report_xlsx_fields</strong></p>
<p>Add/drop columns or change order from the list of columns that are defined
in the Excel template.</p>
<p>The following fields are defined in the Excel template:</p>
<blockquote>
<p>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</p>
</blockquote>
</li>
<li><p class="first"><strong>_report_xlsx_template</strong></p>
<p>Change/extend the Excel template.</p>
</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_move_line_report_xls%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
<ul class="simple">
<li>Noviat</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
<ul class="simple">
<li>Luc De Meyer &lt;<a class="reference external" href="mailto:luc.demeyer&#64;noviat.com">luc.demeyer&#64;noviat.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/14.0/account_move_line_report_xls">OCA/account-financial-reporting</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

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

View File

@ -0,0 +1,32 @@
# Copyright 2009-2020 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestAmlReportXlsx(TransactionCase):
def setUp(self):
super(TestAmlReportXlsx, self).setUp()
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_xlsx(self.amls.ids, None)
self.assertEqual(report_xls[1], "xlsx")

View File

@ -0,0 +1 @@
../../../../account_move_line_report_xls

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)