Skip to content

Commit

Permalink
[16.0][MIG] l10n_es_aeat_mod123: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoRomera committed Dec 28, 2022
1 parent b948df5 commit f36bdc5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion l10n_es_aeat_mod123/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "
Expand Down
2 changes: 1 addition & 1 deletion l10n_es_aeat_mod123/models/mod123.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 8 additions & 6 deletions l10n_es_aeat_mod123/views/mod123_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@
/>
</group>
</group>
<group
<separator
string="Tax lines"
name="group_tax_lines"
colspan="4"
attrs="{'invisible': [('state', '=', 'draft')]}"
>
<field name="tax_line_ids" nolabel="1" readonly="1" />
</group>
/>
<field
name="tax_line_ids"
nolabel="1"
readonly="1"
attrs="{'invisible': [('state', '=', 'draft')]}"
/>
</group>
<form position="inside">
<div class="oe_chatter">
Expand Down

0 comments on commit f36bdc5

Please sign in to comment.