Skip to content

Commit 51cb6fd

Browse files
committed
Merge PR #4396 into 16.0
Signed-off-by pedrobaeza
2 parents b1d71ec + 093b569 commit 51cb6fd

18 files changed

+991
-0
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
============================
6+
Comunicación Veri*FACTU IGIC
7+
============================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:aa09bd59e94f22f5bdba1ffc12f57758c3966156c5c096d89883620b822fd9fd
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github
24+
:target: https://github.com/OCA/l10n-spain/tree/16.0/l10n_es_igic_verifactu_oca
25+
:alt: OCA/l10n-spain
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_igic_verifactu_oca
28+
:alt: Translate me on Weblate
29+
.. |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=16.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
Módulo para la adaptación de la comunicación con el servicio Veri*FACTU de los impuestos de Canarias (IGIC).
36+
37+
**Table of contents**
38+
39+
.. contents::
40+
:local:
41+
42+
Usage
43+
=====
44+
45+
Antes de instalar este módulo, asegúrese de tener configurada la agencia fiscal de Canarias en la configuración de la empresa.
46+
Esto es necesario para la correcta asignación del tipo de impuesto "03" (IGIC) tanto en las facturas como en las posiciones fiscales.
47+
48+
Bug Tracker
49+
===========
50+
51+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/issues>`_.
52+
In case of trouble, please check there if your issue has already been reported.
53+
If you spotted it first, help us to smash it by providing a detailed and welcomed
54+
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_igic_verifactu_oca%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
55+
56+
Do not contact contributors directly about support or help with technical issues.
57+
58+
Credits
59+
=======
60+
61+
Authors
62+
~~~~~~~
63+
64+
* Binhex
65+
66+
Contributors
67+
~~~~~~~~~~~~
68+
69+
* Mario Montes <[email protected]>
70+
* Christian Ramos <[email protected]>
71+
72+
Maintainers
73+
~~~~~~~~~~~
74+
75+
This module is maintained by the OCA.
76+
77+
.. image:: https://odoo-community.org/logo.png
78+
:alt: Odoo Community Association
79+
:target: https://odoo-community.org
80+
81+
OCA, or the Odoo Community Association, is a nonprofit organization whose
82+
mission is to support the collaborative development of Odoo features and
83+
promote its widespread use.
84+
85+
This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/16.0/l10n_es_igic_verifactu_oca>`_ project on GitHub.
86+
87+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .hooks import post_init_hook
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2025 Binhex - Mario Montes <[email protected]>
2+
# Copyright 2025 Binhex - Christian Ramos <[email protected]>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Comunicación Veri*FACTU IGIC",
7+
"summary": "Comunicación Veri*FACTU para IGIC",
8+
"version": "16.0.1.0.0",
9+
"category": "Accounting & Finance",
10+
"website": "https://github.com/OCA/l10n-spain",
11+
"author": "Binhex," "Odoo Community Association (OCA)",
12+
"license": "AGPL-3",
13+
"application": False,
14+
"installable": True,
15+
"depends": [
16+
"l10n_es_igic",
17+
"l10n_es_verifactu_oca",
18+
],
19+
"data": [
20+
"data/atc_verifactu_map_data.xml",
21+
"data/atc_verifactu_tax_agency_data.xml",
22+
"data/account_fiscal_position_template_canary_data.xml",
23+
],
24+
"post_init_hook": "post_init_hook",
25+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<record id="l10n_es_igic.fp_canary" model="account.fiscal.position.template">
4+
<field name="verifactu_tax_key">03</field>
5+
<field
6+
name="verifactu_registration_key"
7+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_01"
8+
/>
9+
</record>
10+
<record id="l10n_es_igic.fp_extra_canary" model="account.fiscal.position.template">
11+
<field name="verifactu_tax_key">03</field>
12+
<field
13+
name="verifactu_registration_key"
14+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_02"
15+
/>
16+
</record>
17+
<record
18+
id="l10n_es_igic.fp_recargo_canary"
19+
model="account.fiscal.position.template"
20+
>
21+
<field name="verifactu_tax_key">03</field>
22+
<field
23+
name="verifactu_registration_key"
24+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_18"
25+
/>
26+
</record>
27+
<record id="l10n_es_igic.fp_irpf9_canary" model="account.fiscal.position.template">
28+
<field name="verifactu_tax_key">03</field>
29+
<field
30+
name="verifactu_registration_key"
31+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_01"
32+
/>
33+
</record>
34+
<record id="l10n_es_igic.fp_irpf15_canary" model="account.fiscal.position.template">
35+
<field name="verifactu_tax_key">03</field>
36+
<field
37+
name="verifactu_registration_key"
38+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_01"
39+
/>
40+
</record>
41+
<record
42+
id="l10n_es_igic.fp_irpf19a_canary"
43+
model="account.fiscal.position.template"
44+
>
45+
<field name="verifactu_tax_key">03</field>
46+
<field
47+
name="verifactu_registration_key"
48+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_01"
49+
/>
50+
</record>
51+
<record id="l10n_es_igic.fp_ispn_canary" model="account.fiscal.position.template">
52+
<field name="verifactu_tax_key">03</field>
53+
<field
54+
name="verifactu_registration_key"
55+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_01"
56+
/>
57+
</record>
58+
<record
59+
id="l10n_es_igic.fp_retailer_canary"
60+
model="account.fiscal.position.template"
61+
>
62+
<field name="verifactu_tax_key">03</field>
63+
<field
64+
name="verifactu_registration_key"
65+
ref="l10n_es_verifactu_oca.verifactu_registration_keys_igic_17"
66+
/>
67+
</record>
68+
</odoo>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo>
3+
4+
<!-- Operación Sujeta y No exenta - Sin inversión del sujeto pasivo -->
5+
<record id="l10n_es_verifactu_oca.verifactu_map_line_S1" model="verifactu.map.line">
6+
<field
7+
name="taxes"
8+
eval="[
9+
(4, ref('l10n_es_igic.account_tax_template_igic_r_0')),
10+
(4, ref('l10n_es_igic.account_tax_template_igic_r_3')),
11+
(4, ref('l10n_es_igic.account_tax_template_igic_r_5')),
12+
(4, ref('l10n_es_igic.account_tax_template_igic_r_7')),
13+
(4, ref('l10n_es_igic.account_tax_template_igic_r_9_5')),
14+
(4, ref('l10n_es_igic.account_tax_template_igic_r_15')),
15+
(4, ref('l10n_es_igic.account_tax_template_igic_r_20')),
16+
]"
17+
/>
18+
</record>
19+
20+
<!-- Operación Sujeta y No exenta - Con inversión del sujeto pasivo -->
21+
<record id="l10n_es_verifactu_oca.verifactu_map_line_S2" model="verifactu.map.line">
22+
<field
23+
name="taxes"
24+
eval="[
25+
(4, ref('l10n_es_igic.account_tax_template_igic_s_ISP0'))
26+
]"
27+
/>
28+
</record>
29+
30+
<!-- Operación exenta -->
31+
<record id="aeat_verifactu_map_line_E1_igic" model="verifactu.map.line">
32+
<field name="code">E1</field>
33+
<field
34+
name="taxes"
35+
eval="[(6, 0, [
36+
ref('l10n_es_igic.account_tax_template_igic_re_ex'),
37+
ref('l10n_es_igic.account_tax_template_igic_ex_0'),
38+
])]"
39+
/>
40+
<field name="verifactu_map_id" ref="l10n_es_verifactu_oca.verifactu_map" />
41+
<field name="name">Operaciones Exentas</field>
42+
</record>
43+
44+
</odoo>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo>
3+
<record id="l10n_es_aeat.aeat_tax_agency_canarias" model="aeat.tax.agency">
4+
<field
5+
name="verifactu_wsdl_out"
6+
>https://prewww2.aeat.es/static_files/common/internet/dep/aplicaciones/es/aeat/tikeV1.0/cont/ws/SistemaFacturacion.wsdl</field>
7+
<field
8+
name="verifactu_wsdl_out_test_address"
9+
>https://prewww1.aeat.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP</field>
10+
<field
11+
name="verifactu_qr_base_url"
12+
>https://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ValidarQR</field>
13+
<field
14+
name="verifactu_qr_base_url_test_address"
15+
>https://prewww2.aeat.es/wlpl/TIKE-CONT/ValidarQR</field>
16+
</record>
17+
</odoo>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2025 Binhex - Christian Ramos
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
from odoo import SUPERUSER_ID, api
4+
5+
6+
def post_init_hook(cr, registry):
7+
"""Perform the reinitialization of this column based on the company's tax agency
8+
WARNING: Only 03 case is covered here, so existing export/intra-community/other
9+
invoices should be changed later.
10+
"""
11+
env = api.Environment(cr, SUPERUSER_ID, {})
12+
key = env.ref("l10n_es_verifactu_oca.verifactu_registration_keys_igic_01")
13+
atc_agency = env.ref("l10n_es_aeat.aeat_tax_agency_canarias")
14+
cr.execute(
15+
"UPDATE account_move SET verifactu_registration_key = %s "
16+
"WHERE move_type = 'out_refund' AND company_id in "
17+
"(SELECT id FROM res_company where tax_agency_id = %s)",
18+
(key.id, atc_agency.id),
19+
)
20+
cr.execute(
21+
"UPDATE account_fiscal_position SET verifactu_tax_key = '03' "
22+
"WHERE company_id in (SELECT id FROM res_company where tax_agency_id = %s)",
23+
(atc_agency.id,),
24+
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* Mario Montes <[email protected]>
2+
* Christian Ramos <[email protected]>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Módulo para la adaptación de la comunicación con el servicio Veri*FACTU de los impuestos de Canarias (IGIC).
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Antes de instalar este módulo, asegúrese de tener configurada la agencia fiscal de Canarias en la configuración de la empresa.
2+
Esto es necesario para la correcta asignación del tipo de impuesto "03" (IGIC) tanto en las facturas como en las posiciones fiscales.

0 commit comments

Comments
 (0)