Skip to content

Commit 528d197

Browse files
committed
[MIG] l10n_es_aeat_partner_check: Migration to 19.0
1 parent cf02675 commit 528d197

4 files changed

Lines changed: 39 additions & 17 deletions

File tree

l10n_es_aeat_partner_check/README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ AEAT - Comprobación de Calidad de datos identificativos
2121
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222
:alt: License: AGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github
24-
:target: https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_aeat_partner_check
24+
:target: https://github.com/OCA/l10n-spain/tree/19.0/l10n_es_aeat_partner_check
2525
:alt: OCA/l10n-spain
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_aeat_partner_check
27+
:target: https://translation.odoo-community.org/projects/l10n-spain-19-0/l10n-spain-19-0-l10n_es_aeat_partner_check
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -46,8 +46,8 @@ Installation
4646

4747
Módulos necesarios:
4848

49-
- l10n_es_aeat
50-
- base_vat
49+
- l10n_es_aeat
50+
- base_vat
5151

5252
Usage
5353
=====
@@ -63,7 +63,7 @@ Bug Tracker
6363
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/issues>`_.
6464
In case of trouble, please check there if your issue has already been reported.
6565
If you spotted it first, help us to smash it by providing a detailed and welcomed
66-
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_partner_check%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
66+
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_partner_check%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6767

6868
Do not contact contributors directly about support or help with technical issues.
6969

@@ -78,11 +78,11 @@ Authors
7878
Contributors
7979
------------
8080

81-
- Ignacio Ibeas - Acysos S.L. <ignacio@acysos.com>
82-
- Ethan Hildick - Studio73 <ethan@studio73.es>
83-
- Aritz Olea - Landoo Sistemas de Información S.L. <ao@landoo.es>
84-
- Miquel Alzanillas - Advanced Programming Solutions
85-
<malzanillas@apsl.net>
81+
- Ignacio Ibeas - Acysos S.L. <ignacio@acysos.com>
82+
- Ethan Hildick - Studio73 <ethan@studio73.es>
83+
- Aritz Olea - Landoo Sistemas de Información S.L. <ao@landoo.es>
84+
- Miquel Alzanillas - Advanced Programming Solutions
85+
<malzanillas@apsl.net>
8686

8787
Maintainers
8888
-----------
@@ -97,6 +97,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9797
mission is to support the collaborative development of Odoo features and
9898
promote its widespread use.
9999

100-
This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_aeat_partner_check>`_ project on GitHub.
100+
This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/19.0/l10n_es_aeat_partner_check>`_ project on GitHub.
101101

102102
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

l10n_es_aeat_partner_check/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Acysos S.L., Odoo Community Association (OCA)",
77
"website": "https://github.com/OCA/l10n-spain",
88
"category": "Accounting",
9-
"version": "18.0.1.0.0",
9+
"version": "19.0.1.0.0",
1010
"license": "AGPL-3",
1111
"depends": ["base", "base_vat", "l10n_es_aeat"],
1212
"data": [

l10n_es_aeat_partner_check/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>AEAT - Comprobación de Calidad de datos identificativos</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:8f9a26e5d088308849e9058547803d01de95eed34863fba6bdf809b6b73983d1
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_aeat_partner_check"><img alt="OCA/l10n-spain" src="https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_aeat_partner_check"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-spain/tree/19.0/l10n_es_aeat_partner_check"><img alt="OCA/l10n-spain" src="https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-spain-19-0/l10n-spain-19-0-l10n_es_aeat_partner_check"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>Comprueba los datos de la empresa en el censo de la AEAT y en el recargo
379379
de equivalencia
380380
<a class="reference external" href="https://sede.agenciatributaria.gob.es/static_files/Sede/Biblioteca/Manual/Tecnicos/WS/030_036_037/Manual_Tecnico_WS_Masivo_Calidad_Datos_Identificativos.pdf">https://sede.agenciatributaria.gob.es/static_files/Sede/Biblioteca/Manual/Tecnicos/WS/030_036_037/Manual_Tecnico_WS_Masivo_Calidad_Datos_Identificativos.pdf</a></p>
@@ -412,7 +412,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
412412
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-spain/issues">GitHub Issues</a>.
413413
In case of trouble, please check there if your issue has already been reported.
414414
If you spotted it first, help us to smash it by providing a detailed and welcomed
415-
<a class="reference external" href="https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_partner_check%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
415+
<a class="reference external" href="https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_partner_check%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416416
<p>Do not contact contributors directly about support or help with technical issues.</p>
417417
</div>
418418
<div class="section" id="credits">
@@ -442,7 +442,7 @@ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
442442
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
443443
mission is to support the collaborative development of Odoo features and
444444
promote its widespread use.</p>
445-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_aeat_partner_check">OCA/l10n-spain</a> project on GitHub.</p>
445+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-spain/tree/19.0/l10n_es_aeat_partner_check">OCA/l10n-spain</a> project on GitHub.</p>
446446
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
447447
</div>
448448
</div>

l10n_es_aeat_partner_check/tests/test_res_partner.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from odoo.tests import common
88

9-
soap_model = "odoo.addons.l10n_es_aeat.models.aeat_soap.L10nEsAeatSoap"
9+
soap_model = "odoo.addons.l10n_es_aeat.wizard.aeat_soap.L10nEsAeatSoap"
1010
cert_model = "odoo.addons.l10n_es_aeat.models.aeat_certificate.L10nEsAeatCertificate"
1111
partner_model = "odoo.addons.l10n_es_aeat_partner_check.models.res_partner.ResPartner"
1212

@@ -85,3 +85,25 @@ def test_03_check_partner_no_spanish(self, redirect_mock, *args):
8585
self.assertFalse(self.partner_in.aeat_partner_check_result)
8686
self.partner_in.aeat_check_partner()
8787
self.assertFalse(self.partner_in.aeat_partner_check_result)
88+
89+
def test_04_write_check_partner(self):
90+
self.env.company.vat_check_aeat = False
91+
self.partner_in.write({"company_id": self.env.company.id})
92+
93+
def test_05_compute_data_diff(self):
94+
self.partner.aeat_partner_check_result = "IDENTIFICADO"
95+
self.partner.name = "Mr. Odoo & Co."
96+
self.partner.aeat_partner_name = "Mr. Odoo & Co."
97+
self.assertFalse(
98+
self.partner.aeat_data_diff, "A-1: Names should match without diff"
99+
)
100+
self.partner.aeat_partner_name = "Mr. Odoo & Co." # Double space in AEAT name
101+
self.assertFalse(
102+
self.partner.aeat_data_diff,
103+
"A-2: Names should match despite AEAT double space",
104+
)
105+
self.partner.aeat_partner_name = "Mr. Odoo S.L."
106+
self.assertTrue(
107+
self.partner.aeat_data_diff,
108+
"B: Names should differ, aeat_data_diff should be True",
109+
)

0 commit comments

Comments
 (0)