Skip to content

Commit 38a271b

Browse files
committed
[MIG] l10n_es_aeat: Adapt real estate feature to 19.0
1 parent 4eef080 commit 38a271b

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

l10n_es_aeat/models/l10n_es_aeat_real_estate.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from odoo import api, fields, models
77
from odoo.exceptions import ValidationError
8-
from odoo.tools.translate import _
98

109
from .aeat_address_types import AEAT_ADDRESS_TYPES
1110

@@ -153,7 +152,10 @@ def _check_reference(self):
153152
ref = self._normalize_reference(ref)
154153
if not self._is_valid_reference(ref):
155154
raise ValidationError(
156-
_("The cadastral reference '%s' is not valid.") % record.reference
155+
self.env._(
156+
"The cadastral reference '%s' is not valid.",
157+
record.reference,
158+
)
157159
)
158160

159161
@api.model

l10n_es_aeat/readme/CONFIGURE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ heredarán la función \_compute_error_count para indicar cuantas líneas
3333
con errores hay en el informe. Si el valor es 0, no se mostrará ningún
3434
aviso; si el valor es mayor a 0, se mostrará un aviso en la parte
3535
superior de la vista formulario del informe.
36+
37+
Para poder dar de alta y gestionar inmuebles hay que agregar a los
38+
usuarios al grupo "Use AEAT Real Estates"

l10n_es_aeat/readme/CONTRIBUTORS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
- Juan Vicente Pascual \<<jvpascual@puntsistemes.es>\>
1010
- Abraham Anes \<<abraham@studio73.es>\>
1111
- Diagram Software S.L.
12-
- Consultoría Informática Studio 73 S.L.
1312
- Miquel Raïch \<<miquel.raich@forgeflow.com>\>
1413
- Iván Antón \<<ozono@ozonomultimedia.com>\>
1514
- Digital5 S.L.
1615
- Valentin Vinagre \<<valentin.vinagre@sygel.es>\>
1716
- Manuel Regidor \<<manuel.regidor@sygel.es>\>
1817
- Jairo Llopis (<https://www.moduon.team>)
18+
- `Studio73 <https://www.studio73.es>`__:
19+
- Pablo Cortés
1920
- Carlos Sainz-Pardo (https://www.netkia.es)

l10n_es_aeat/security/aeat_security.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
</record>
1717
<record model="res.groups" id="group_use_aeat_real_estates">
1818
<field name="name">Use AEAT Real Estates</field>
19-
<field name="category_id" ref="base.module_category_hidden" />
2019
<field
21-
name="users"
22-
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
20+
name="user_ids"
21+
eval="[Command.link(ref('base.user_root')), Command.link(ref('base.user_admin'))]"
2322
/>
2423
</record>
2524
<record id="l10n_es_aeat_certificate_rule" model="ir.rule">

l10n_es_aeat/views/account_move_view.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!-- Copyright 2022 Tecnativa - Víctor Martínez
3-
Copyright 2025 Netkia - Carlos Sainz-Pardo
4-
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
2+
<!-- License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
53
<odoo>
64
<record id="view_move_form" model="ir.ui.view">
75
<field name="model">account.move</field>

l10n_es_aeat/views/l10n_es_aeat_real_estate_view.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
<field name="model">l10n.es.aeat.real_estate</field>
1414
<field name="arch" type="xml">
1515
<form>
16-
<field name="check_ok" invisible="1" />
17-
<field name="active" invisible="1" />
1816
<header />
1917
<div
2018
class="alert alert-danger"
@@ -105,7 +103,6 @@
105103
<field name="representative_vat" optional="hide" />
106104
<field name="reference" />
107105
<field name="state_id" optional="hide" />
108-
<field name="check_ok" column_invisible="1" />
109106
<field name="company_id" groups="base.group_multi_company" />
110107
</list>
111108
</field>

0 commit comments

Comments
 (0)