Browse Source

Merge d508b577d0 into d06f068324

pull/689/merge
Nikos Tsirintanis 3 years ago
committed by GitHub
parent
commit
0feb813c1a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 61
      account_financial_report_horizontal/README.rst
  2. 3
      account_financial_report_horizontal/__init__.py
  3. 18
      account_financial_report_horizontal/__manifest__.py
  4. 6
      account_financial_report_horizontal/data/ir_actions_report_xml.xml
  5. 17
      account_financial_report_horizontal/data/report_paperformat.xml
  6. 45
      account_financial_report_horizontal/i18n/account_financial_report_horizontal.pot
  7. 49
      account_financial_report_horizontal/i18n/ca.po
  8. 50
      account_financial_report_horizontal/i18n/de.po
  9. 51
      account_financial_report_horizontal/i18n/es.po
  10. 50
      account_financial_report_horizontal/i18n/es_EC.po
  11. 47
      account_financial_report_horizontal/i18n/fi.po
  12. 51
      account_financial_report_horizontal/i18n/fr.po
  13. 51
      account_financial_report_horizontal/i18n/hr_HR.po
  14. 50
      account_financial_report_horizontal/i18n/it.po
  15. 50
      account_financial_report_horizontal/i18n/pt.po
  16. 49
      account_financial_report_horizontal/i18n/tr.po
  17. 3
      account_financial_report_horizontal/models/__init__.py
  18. 62
      account_financial_report_horizontal/models/account_financial_report.py
  19. 4
      account_financial_report_horizontal/readme/CONTRIBUTORS.rst
  20. 3
      account_financial_report_horizontal/readme/DESCRIPTION.rst
  21. 2
      account_financial_report_horizontal/readme/USAGE.rst
  22. 3
      account_financial_report_horizontal/report/__init__.py
  23. 28
      account_financial_report_horizontal/report/report_financial.py
  24. 49
      account_financial_report_horizontal/report/report_financial.xml
  25. BIN
      account_financial_report_horizontal/static/description/icon.png
  26. 3
      account_financial_report_horizontal/tests/__init__.py
  27. 20
      account_financial_report_horizontal/tests/test_account_financial_report_horizontal.py

61
account_financial_report_horizontal/README.rst

@ -0,0 +1,61 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
======================================
Accounting Financial Report Horizontal
======================================
This module provides a balance sheet and profit and loss report in landscape
mode with assets to the left and liabilities to the right as is common in
Italy and the Netherlands.
Usage
=====
After the module is installed, the balance sheet and profit and loss reports
will be in landscape mode with assets left and liabilities right.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/91/11.0
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 smash it by providing detailed and welcomed feedback.
Credits
=======
Images
------
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Contributors
------------
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Holger Brunn <hbrunn@therp.nl>
* Stefan Rijnhart <srijnhart@therp.nl>
Do not contact contributors directly about support or help with technical issues.
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
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.
To contribute to this module, please visit https://odoo-community.org.

3
account_financial_report_horizontal/__init__.py

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from . import report

18
account_financial_report_horizontal/__manifest__.py

@ -0,0 +1,18 @@
# © 2012-2016 Therp BV <http://therp.nl>
# © 2013 Agile Business Group sagl <http://www.agilebg.com>
# <lorenzo.battistini@agilebg.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Accounting Financial Report Horizontal",
"version": "12.0.1.0.0",
"author": "Therp BV,Agile Business Group,Odoo Community Association (OCA)",
"category": 'Accounting & Finance',
'website': 'https://github.com/OCA/account-financial-reporting',
'license': 'AGPL-3',
"depends": ["account_invoicing"],
'data': [
"data/report_paperformat.xml",
"data/ir_actions_report_xml.xml",
"report/report_financial.xml",
],
}

6
account_financial_report_horizontal/data/ir_actions_report_xml.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="account.action_report_financial" model="ir.actions.report">
<field name="paperformat_id" ref="paperformat_euro_landscape" />
</record>
</odoo>

17
account_financial_report_horizontal/data/report_paperformat.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="paperformat_euro_landscape" model="report.paperformat">
<field name="name">European A4 (Landscape)</field>
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Landscape</field>
<field name="margin_top">40</field>
<field name="margin_bottom">23</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">35</field>
<field name="dpi">90</field>
</record>
</odoo>

45
account_financial_report_horizontal/i18n/account_financial_report_horizontal.pot

@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.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_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr ""

49
account_financial_report_horizontal/i18n/ca.po

@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-26 02:44+0000\n"
"PO-Revision-Date: 2017-04-26 02:44+0000\n"
"Last-Translator: Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr "Informe Comptable "
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Balanç "
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Crèdit "
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Dèbit "
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Nom"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr "report.account.report_financial"

50
account_financial_report_horizontal/i18n/de.po

@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-20 12:49+0000\n"
"PO-Revision-Date: 2018-08-23 12:09+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.1.1\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr "Kontenbericht"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Saldo"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Kredit"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Soll"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Name"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr "report.account.report_financial"

51
account_financial_report_horizontal/i18n/es.po

@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2017
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-23 01:40+0000\n"
"PO-Revision-Date: 2018-02-23 01:40+0000\n"
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr "Informe de cuenta"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Cuota"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Haber"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Debe"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Nombre"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr "report.account.report_financial"

50
account_financial_report_horizontal/i18n/es_EC.po

@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# Cristian Salamea <ovnicraft@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-27 22:15+0000\n"
"PO-Revision-Date: 2018-04-27 22:15+0000\n"
"Last-Translator: Cristian Salamea <ovnicraft@gmail.com>, 2018\n"
"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/"
"es_EC/)\n"
"Language: es_EC\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Saldo"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Crédito"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Débito"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Nombre"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr ""

47
account_financial_report_horizontal/i18n/fi.po

@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-22 15:43+0000\n"
"Last-Translator: Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>\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_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr "Tiliraportti"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Saldo"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Kredit"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Debet"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Nimi"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr "report.account.report_financial"

51
account_financial_report_horizontal/i18n/fr.po

@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-16 12:30+0000\n"
"PO-Revision-Date: 2019-05-01 20:02+0000\n"
"Last-Translator: Katerina Katapodi <katerinakatapodi@gmail.com>\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.5.1\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr "Un Releve de Compte"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
#, fuzzy
msgid "Balance"
msgstr "Solde"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Crédit"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Débit"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Nom"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr "report.compte.report_financiel"

51
account_financial_report_horizontal/i18n/hr_HR.po

@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-22 16:14+0000\n"
"PO-Revision-Date: 2017-12-22 16:14+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Saldo"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Potražuje"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Duguje"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Naziv"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr ""

50
account_financial_report_horizontal/i18n/it.po

@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# Stefano <stefano.sforzi@agilebg.com>, 2017
# Marco Calcagni <mcalcagni@dinamicheaziendali.it>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-23 15:26+0000\n"
"PO-Revision-Date: 2018-04-23 15:26+0000\n"
"Last-Translator: Marco Calcagni <mcalcagni@dinamicheaziendali.it>, 2018\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Saldo"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Credito"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Debito"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr ""

50
account_financial_report_horizontal/i18n/pt.po

@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# Pedro Castro Silva <inactive+pcs.sossia@transifex.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-22 16:14+0000\n"
"PO-Revision-Date: 2017-12-22 16:14+0000\n"
"Last-Translator: Pedro Castro Silva <inactive+pcs.sossia@transifex.com>, "
"2017\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr ""
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Saldo"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Crédito"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Débito"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Nome"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr ""

49
account_financial_report_horizontal/i18n/tr.po

@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_financial_report_horizontal
#
# Translators:
# Ediz Duman <neps1192@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-06 22:14+0000\n"
"PO-Revision-Date: 2018-04-06 22:14+0000\n"
"Last-Translator: Ediz Duman <neps1192@gmail.com>, 2018\n"
"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_account_financial_report
msgid "Account Report"
msgstr "Hesap Raporu"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Balance"
msgstr "Bakiye"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Credit"
msgstr "Alacak"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Debit"
msgstr "Borç"
#. module: account_financial_report_horizontal
#: model:ir.ui.view,arch_db:account_financial_report_horizontal.report_financial
msgid "Name"
msgstr "Adı"
#. module: account_financial_report_horizontal
#: model:ir.model,name:account_financial_report_horizontal.model_report_account_report_financial
msgid "report.account.report_financial"
msgstr "report.account.report_financial"

3
account_financial_report_horizontal/models/__init__.py

@ -0,0 +1,3 @@
# © 2015 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import account_financial_report

62
account_financial_report_horizontal/models/account_financial_report.py

@ -0,0 +1,62 @@
# © 2015 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class AccountFinancialReport(models.Model):
_inherit = 'account.financial.report'
@api.multi
def _has_exclusively_report_types(self, report_types):
self.ensure_one()
if self.type == 'accounts':
for account in self.account_ids:
if account.user_type_id.type not in report_types:
return False
elif self.type == 'account_type':
for account_type in self.account_type_ids:
if account_type.type not in report_types:
return False
elif self.type == 'account_report':
# this will have mixed types usually, we rely upon this being
# filtered out by siblings of this report
return True
return all(
r._has_exclusively_report_types(report_types)
for r in self.children_ids)
@api.multi
def _get_children_by_order(self):
reports = super(AccountFinancialReport, self)._get_children_by_order()
if self.env.context.get('account_financial_report_horizontal_side'):
side = self.env.context['account_financial_report_horizontal_side']
report_types = {
'left': ['receivable', 'liquidity', 'other'],
'right': ['payable', 'other']
}[side]
last_good_report = self.browse([])
last_bad_report = self.browse([])
result = self.browse([])
for report in reports:
if not report.parent_id:
result += report
# special treatment for profit and loss if they have the
# standard configuration type='other'
elif side == 'right' and report == self.env.ref(
'account.account_financial_report_income0'
) or side == 'left' and report == self.env.ref(
'account.account_financial_report_expense0'
):
last_bad_report = report
# don't check children if we already checked the parent
elif report.parent_id == last_bad_report:
continue
elif report.parent_id == last_good_report\
or report._has_exclusively_report_types(report_types):
last_good_report = report
result += report
else:
last_bad_report = report
return result
else:
return reports

4
account_financial_report_horizontal/readme/CONTRIBUTORS.rst

@ -0,0 +1,4 @@
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Holger Brunn <hbrunn@therp.nl>
* Stefan Rijnhart <srijnhart@therp.nl>
* Nikos Tsirintanis <ntsirintanis@therp.nl>

3
account_financial_report_horizontal/readme/DESCRIPTION.rst

@ -0,0 +1,3 @@
This module provides a balance sheet and profit and loss report in landscape
mode with assets to the left and liabilities to the right as is common in
Italy and the Netherlands.

2
account_financial_report_horizontal/readme/USAGE.rst

@ -0,0 +1,2 @@
After the module is installed, the balance sheet and profit and loss reports
will be in landscape mode with assets left and liabilities right.

3
account_financial_report_horizontal/report/__init__.py

@ -0,0 +1,3 @@
# © 2015 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import report_financial

28
account_financial_report_horizontal/report/report_financial.py

@ -0,0 +1,28 @@
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class ReportFinancial(models.AbstractModel):
_inherit = 'report.account.report_financial'
def get_account_lines(self, data, side=None):
return super(
ReportFinancial, self.with_context(
account_financial_report_horizontal_side=side,
)
).get_account_lines(data)
def get_left_lines(self, data):
return self.get_account_lines(data, side='left')
def get_right_lines(self, data):
return self.get_account_lines(data, side='right')
@api.multi
def get_report_values(self, docids, data):
data.setdefault('form', {}).update(
get_left_lines=self.get_left_lines,
get_right_lines=self.get_right_lines,
)
return super(ReportFinancial, self).get_report_values(docids, data)

49
account_financial_report_horizontal/report/report_financial.xml

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="report_financial" inherit_id="account.report_financial">
<!-- replace all tables for different selections and do it in one table /-->
<!-- with credit/debit /-->
<xpath expr="//div[hasclass('page')]/table" position="replace" />
<!-- unfiltered without credit/debit /-->
<xpath expr="//div[hasclass('page')]/table" position="replace" />
<!-- filtered without credit/debit /-->
<xpath expr="//div[hasclass('page')]/table" position="replace">
<div class="row">
<div class="col-xs-6" t-foreach="[data['get_left_lines'], data['get_right_lines']]" t-as="get_lines_function">
<table class="table table-condensed">
<thead>
<tr>
<th>Name</th>
<th class="text-right" t-if="data['debit_credit'] == 1">Debit</th>
<th class="text-right" t-if="data['debit_credit'] == 1">Credit</th>
<th class="text-right">Balance</th>
<th class="text-right" t-if="data['enable_filter'] == 1 and not data['debit_credit']"><span t-esc="data['label_filter']"/></th>
</tr>
</thead>
<tbody>
<tr t-foreach="get_lines_function(data)" t-as="a">
<t t-if="a['level'] != 0">
<t t-if="a.get('level') &gt; 3"><t t-set="style" t-value="'font-weight: normal;'"/></t>
<t t-if="not a.get('level') &gt; 3"><t t-set="style" t-value="'font-weight: bold;'"/></t>
<td>
<span style="color: white;" t-esc="'..' * a.get('level', 0)"/>
<span t-att-style="style" t-esc="a.get('name')"/>
</td>
<td class="text-right" style="white-space: nowrap;" t-if="['debit_credit'] == 1">
<span t-att-style="style" t-esc="a.get('debit')" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
</td>
<td class="text-right" style="white-space: nowrap;" t-if="data['debit_credit'] == 1">
<span t-att-style="style" t-esc="a.get('credit')" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
</td>
<td class="text-right"><span t-att-style="style" t-esc="a.get('balance')" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/></td>
<td class="text-right" t-if="data['enable_filter'] == 1 and not data['debit_credit']"><span t-att-style="style" t-esc="a.get('balance_cmp')" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/></td>
</t>
</tr>
</tbody>
</table>
</div>
</div>
</xpath>
</template>
</odoo>

BIN
account_financial_report_horizontal/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

3
account_financial_report_horizontal/tests/__init__.py

@ -0,0 +1,3 @@
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_account_financial_report_horizontal

20
account_financial_report_horizontal/tests/test_account_financial_report_horizontal.py

@ -0,0 +1,20 @@
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from lxml import etree
from odoo.tests.common import TransactionCase
class TestAccountFinancialReportHorizontal(TransactionCase):
def test_account_financial_report_horizontal(self):
action = self.env['accounting.report'].with_context(
active_id=self.env.ref('account.menu_account_report_pl').id,
active_model='ir.ui.view',
).create({}).check_report()
data = action['data']
report = self.env['ir.actions.report']._get_report_from_name(
action['report_name'])
html = report.with_context(action['context']).render_qweb_html(
self.env[data['model']].browse(data['ids']),
data=data,
)[0]
self.assertTrue(etree.fromstring(html).xpath("//div[hasclass('row')]"))
Loading…
Cancel
Save