Skip to content

Commit

Permalink
[16.0][MIG] l10n_es_aeat_mod115: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoRomera committed Dec 23, 2022
1 parent 4191539 commit 4812000
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions l10n_es_aeat_mod115/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

{
"name": "AEAT modelo 115",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"development_status": "Mature",
"category": "Localisation/Accounting",
"author": "AvanzOSC," "Tecnativa," "Odoo Community Association (OCA)",
"author": "AvanzOSC, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"license": "AGPL-3",
"depends": ["l10n_es", "l10n_es_aeat"],
Expand Down
6 changes: 3 additions & 3 deletions l10n_es_aeat_mod115/models/mod115.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ def button_confirm(self):
)
if msg:
raise UserError(msg)
return super(L10nEsAeatMod115Report, self).button_confirm()
return super().button_confirm()

def calculate(self):
res = super(L10nEsAeatMod115Report, self).calculate()
self.refresh()
res = super().calculate()
self.invalidate_recordset()
for rec in self:
if rec.casilla_05 <= 0.0:
rec.tipo_declaracion = "N"
Expand Down
14 changes: 8 additions & 6 deletions l10n_es_aeat_mod115/views/mod115_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@
options="{'currency_field': 'currency_id'}"
/>
</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>
</group>
<field name="partner_bank_id" position="attributes">
Expand Down

0 comments on commit 4812000

Please sign in to comment.