From d05899e23f1b90a8a17e44c174b9f71c838e3417 Mon Sep 17 00:00:00 2001 From: FernandoRomera Date: Thu, 22 Dec 2022 11:09:11 +0100 Subject: [PATCH] [16.0][MIG] l10n_es_aeat_mod123: Migration to 16.0 --- l10n_es_aeat_mod123/__manifest__.py | 2 +- l10n_es_aeat_mod123/models/mod123.py | 2 +- l10n_es_aeat_mod123/views/mod123_view.xml | 14 ++++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/l10n_es_aeat_mod123/__manifest__.py b/l10n_es_aeat_mod123/__manifest__.py index 15e80fecb37..956da6a4fc4 100644 --- a/l10n_es_aeat_mod123/__manifest__.py +++ b/l10n_es_aeat_mod123/__manifest__.py @@ -3,7 +3,7 @@ { "name": "AEAT modelo 123", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Localisation/Accounting", "author": "Tecnativa, " "Spanish Localization Team, " diff --git a/l10n_es_aeat_mod123/models/mod123.py b/l10n_es_aeat_mod123/models/mod123.py index ee748064337..12030e585fe 100644 --- a/l10n_es_aeat_mod123/models/mod123.py +++ b/l10n_es_aeat_mod123/models/mod123.py @@ -90,7 +90,7 @@ def _compute_casilla08(self): report.casilla_08 = report.casilla_06 + report.casilla_07 def calculate(self): - pred = super(L10nEsAeatMod123Report, self).calculate() + pred = super().calculate() move_lines02 = self.tax_line_ids.filtered(lambda r: r.field_number == 2) move_lines03 = self.tax_line_ids.filtered(lambda r: r.field_number == 3) self.casilla_02 = move_lines02.amount diff --git a/l10n_es_aeat_mod123/views/mod123_view.xml b/l10n_es_aeat_mod123/views/mod123_view.xml index 2f567ed1aab..6ada585a9b8 100644 --- a/l10n_es_aeat_mod123/views/mod123_view.xml +++ b/l10n_es_aeat_mod123/views/mod123_view.xml @@ -58,14 +58,16 @@ /> - - - + /> +