From 8de1f9db69118693f5a8e77b64db7007f16cd2ec Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 29 Aug 2021 02:10:40 +0000 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- README.md | 2 +- account_financial_report/COPYRIGHT | 1 + account_financial_report/__manifest__.py | 2 +- account_financial_report/i18n/es.po | 20 ++++--- .../report/aged_partner_balance.py | 6 +-- .../report/templates/aged_partner_balance.xml | 52 +++++++++---------- account_financial_report/tests/__init__.py | 1 + .../tests/test_aged_partner_balance.py | 34 ++++++++++++ 8 files changed, 76 insertions(+), 42 deletions(-) create mode 100644 account_financial_report/tests/test_aged_partner_balance.py diff --git a/README.md b/README.md index f75a104..c76c873 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,6 @@ Available addons addon | version | summary --- | --- | --- [account_tax_balance](account_tax_balance/) | 2.0.1.1.0| Compute tax balances based on date range -[account_financial_report](account_financial_report/) | 2.0.1.3.1| OCA Financial Reports +[account_financial_report](account_financial_report/) | 2.0.1.3.2| OCA Financial Reports diff --git a/account_financial_report/COPYRIGHT b/account_financial_report/COPYRIGHT index bcdff54..8ebb221 100644 --- a/account_financial_report/COPYRIGHT +++ b/account_financial_report/COPYRIGHT @@ -14,6 +14,7 @@ Most of the files are Copyright 2019-20 ForgeFlow S.L. (https://www.forgeflow.com) Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) Copyright 2020 Onestein () + Copyright 2021 Simone Rubino - Agile Business Group Copyright 2021 Tecnativa - João Marques © 2016 Damien Crier (Camptocamp) © 2016 Julien Coux (Camptocamp) diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index 1969db3..1bd9913 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -6,7 +6,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Account Financial Reports", - "version": "2.0.1.3.1", + "version": "2.0.1.3.2", "category": "Reporting", "summary": "OCA Financial Reports", "author": "Camptocamp SA," diff --git a/account_financial_report/i18n/es.po b/account_financial_report/i18n/es.po index 753bade..4b8a102 100644 --- a/account_financial_report/i18n/es.po +++ b/account_financial_report/i18n/es.po @@ -7,8 +7,8 @@ msgstr "" "Project-Id-Version: Odoo Server 12.0+e\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-21 13:00+0000\n" -"PO-Revision-Date: 2021-03-10 18:45+0000\n" -"Last-Translator: Ana Suárez \n" +"PO-Revision-Date: 2021-08-23 19:50+0000\n" +"Last-Translator: Ernesto Tejeda \n" "Language-Team: \n" "Language: es\n" "MIME-Version: 1.0\n" @@ -213,33 +213,32 @@ msgstr "Tiempo ≤ 90 d." #: model:ir.ui.menu,name:account_financial_report.menu_aged_partner_balance_wizard #, python-format msgid "Aged Partner Balance" -msgstr "Saldo vencidos de empresa" +msgstr "Calidad de la deuda" #. module: account_financial_report #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_base msgid "Aged Partner Balance -" -msgstr "Balance Empresa Vencido" +msgstr "Calidad de la deuda -" #. module: account_financial_report #: model:ir.model,name:account_financial_report.model_report_account_financial_report_aged_partner_balance msgid "Aged Partner Balance Report" -msgstr "Estado de antigüedad de saldos" +msgstr "Informe de Calidad de la deuda" #. module: account_financial_report #: model:ir.model,name:account_financial_report.model_aged_partner_balance_report_wizard msgid "Aged Partner Balance Wizard" -msgstr "Asistente de Estado de Antigüedad de Saldos" +msgstr "Asistente de Calidad de la deuda" #. module: account_financial_report #: model:ir.model,name:account_financial_report.model_report_a_f_r_report_aged_partner_balance_xlsx -#, fuzzy msgid "Aged Partner Balance XLSL Report" -msgstr "Saldo vencidos de empresa XLSX" +msgstr "Calidad de la deuda XLSX" #. module: account_financial_report #: model:ir.actions.report,name:account_financial_report.action_report_aged_partner_balance_xlsx msgid "Aged Partner Balance XLSX" -msgstr "Saldo vencidos de empresa XLSX" +msgstr "Calidad de la deuda XLSX" #. module: account_financial_report #: code:addons/account_financial_report/wizard/journal_ledger_wizard.py:0 @@ -802,9 +801,8 @@ msgstr "Filtro Cuentas" #. module: account_financial_report #: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard -#, fuzzy msgid "Filter analytic accounts" -msgstr "Filtrar por etiquetas analíticas" +msgstr "Filtrar por cuentas analíticas" #. module: account_financial_report #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__analytic_tag_ids diff --git a/account_financial_report/report/aged_partner_balance.py b/account_financial_report/report/aged_partner_balance.py index 53271b0..0aaa158 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -218,9 +218,8 @@ class AgedPartnerBalanceReport(models.AbstractModel): "ref", "reconciled", ] - move_lines = self.env["account.move.line"].search_read( - domain=domain, fields=ml_fields - ) + line_model = self.env["account.move.line"] + move_lines = line_model.search_read(domain=domain, fields=ml_fields) journals_ids = set() partners_ids = set() partners_data = {} @@ -288,6 +287,7 @@ class AgedPartnerBalanceReport(models.AbstractModel): ref_label = move_line["ref"] + str(" - ") + move_line["name"] move_line_data.update( { + "line_rec": line_model.browse(move_line["id"]), "date": move_line["date"], "entry": move_line["move_id"][1], "jnl_id": move_line["journal_id"][0], diff --git a/account_financial_report/report/templates/aged_partner_balance.xml b/account_financial_report/report/templates/aged_partner_balance.xml index ca40531..1a376ca 100644 --- a/account_financial_report/report/templates/aged_partner_balance.xml +++ b/account_financial_report/report/templates/aged_partner_balance.xml @@ -249,7 +249,7 @@
@@ -260,7 +260,7 @@
@@ -270,7 +270,7 @@
@@ -280,7 +280,7 @@
@@ -290,7 +290,7 @@
@@ -300,7 +300,7 @@
@@ -310,7 +310,7 @@
@@ -324,7 +324,7 @@
- +
- +
- +
- +
- +
- +