odoo-addon-l10n-es-vat-book 16.0.2.0.1.4__py3-none-any.whl → 16.0.2.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of odoo-addon-l10n-es-vat-book might be problematic. Click here for more details.
- odoo/addons/l10n_es_vat_book/README.rst +1 -1
- odoo/addons/l10n_es_vat_book/__manifest__.py +1 -1
- odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book.py +6 -12
- odoo/addons/l10n_es_vat_book/static/description/index.html +1 -1
- odoo/addons/l10n_es_vat_book/tests/test_l10n_es_aeat_vat_book.py +24 -4
- {odoo_addon_l10n_es_vat_book-16.0.2.0.1.4.dist-info → odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_es_vat_book-16.0.2.0.1.4.dist-info → odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info}/RECORD +9 -9
- {odoo_addon_l10n_es_vat_book-16.0.2.0.1.4.dist-info → odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_es_vat_book-16.0.2.0.1.4.dist-info → odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Libro de IVA
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:287d6585a93fc073370e7d6128261e85e4c4997615f19ce2fdd97cf4fa4163d8
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -466,19 +466,13 @@ class L10nEsVatBook(models.Model):
|
|
|
466
466
|
)
|
|
467
467
|
accounts.update({tax: account for tax in line_taxes})
|
|
468
468
|
# Filter in all possible data using sets for improving performance
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
and accounts.get(line.tax_line_id, line.account_id)
|
|
475
|
-
!= line.account_id
|
|
476
|
-
)
|
|
477
|
-
)
|
|
478
|
-
else:
|
|
479
|
-
lines = moves.filtered(
|
|
480
|
-
lambda line: (line.tax_ids | line.tax_line_id) & taxes
|
|
469
|
+
lines = moves.filtered(
|
|
470
|
+
lambda line: line.tax_ids & taxes
|
|
471
|
+
or (
|
|
472
|
+
line.tax_line_id in taxes
|
|
473
|
+
and accounts.get(line.tax_line_id) != line.account_id
|
|
481
474
|
)
|
|
475
|
+
)
|
|
482
476
|
if map_lines:
|
|
483
477
|
rec.create_vat_book_lines(lines, map_lines[:1].book_type, taxes)
|
|
484
478
|
# Issued
|
|
@@ -372,7 +372,7 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:287d6585a93fc073370e7d6128261e85e4c4997615f19ce2fdd97cf4fa4163d8
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
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/16.0/l10n_es_vat_book"><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-16-0/l10n-spain-16-0-l10n_es_vat_book"><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&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>Módulo que calcula el libro de IVA español.</p>
|
|
@@ -24,6 +24,9 @@ class TestL10nEsAeatVatBookBase(TestL10nEsAeatModBase):
|
|
|
24
24
|
"P_IVA21_SC": (230, 48.3),
|
|
25
25
|
"P_IVA0_ND": (100, 21),
|
|
26
26
|
"P_IVA21_IC_BC": (200, 42),
|
|
27
|
+
"P_REQ05": (270, 1.35),
|
|
28
|
+
"P_REQ014": (280, 3.92),
|
|
29
|
+
"P_REQ52": (290, 15.08),
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
|
|
@@ -74,19 +77,36 @@ class TestL10nEsAeatVatBook(TestL10nEsAeatVatBookBase):
|
|
|
74
77
|
self.assertEqual(line.base_amount, 0.0)
|
|
75
78
|
self.assertEqual(line.tax_amount, 0.0)
|
|
76
79
|
# Check tax summary for received invoices
|
|
77
|
-
self.assertEqual(len(vat_book.received_tax_summary_ids),
|
|
80
|
+
self.assertEqual(len(vat_book.received_tax_summary_ids), 6)
|
|
81
|
+
rec_summaries = sorted(
|
|
82
|
+
vat_book.received_tax_summary_ids,
|
|
83
|
+
key=lambda line: line.tax_amount,
|
|
84
|
+
reverse=True,
|
|
85
|
+
)
|
|
78
86
|
# P_IVA21_SC - 21% IVA soportado (servicios corrientes)
|
|
79
|
-
line =
|
|
87
|
+
line = rec_summaries[0]
|
|
80
88
|
self.assertAlmostEqual(line.base_amount, 230)
|
|
81
89
|
self.assertAlmostEqual(line.tax_amount, 48.3)
|
|
82
90
|
# P_IVA21_IC_BC - IVA 21% Adquisición Intracomunitaria. Bienes corrientes
|
|
83
|
-
line =
|
|
91
|
+
line = rec_summaries[1]
|
|
84
92
|
self.assertAlmostEqual(line.base_amount, 200)
|
|
85
93
|
self.assertAlmostEqual(line.tax_amount, 42)
|
|
86
94
|
# P_IVA0_ND - 21% IVA Soportado no deducible
|
|
87
|
-
line =
|
|
95
|
+
line = rec_summaries[2]
|
|
88
96
|
self.assertAlmostEqual(line.base_amount, 100)
|
|
89
97
|
self.assertAlmostEqual(line.tax_amount, 21)
|
|
98
|
+
# P_REQ52 - 5.2% Recargo de equivalencia sobre operaciones sujetas a IVA
|
|
99
|
+
line = rec_summaries[3]
|
|
100
|
+
self.assertAlmostEqual(line.base_amount, 290)
|
|
101
|
+
self.assertAlmostEqual(line.tax_amount, 15.08)
|
|
102
|
+
# P_REQ014 - 1.4% Recargo de equivalencia sobre operaciones sujetas a IVA
|
|
103
|
+
line = rec_summaries[4]
|
|
104
|
+
self.assertAlmostEqual(line.base_amount, 280)
|
|
105
|
+
self.assertAlmostEqual(line.tax_amount, 3.92)
|
|
106
|
+
# P_REQ05 - 0.5% Recargo de equivalencia sobre operaciones sujetas a IVA
|
|
107
|
+
line = rec_summaries[5]
|
|
108
|
+
self.assertAlmostEqual(line.base_amount, 270)
|
|
109
|
+
self.assertAlmostEqual(line.tax_amount, 1.35)
|
|
90
110
|
# Let's dig into this tax detail for checking the deductible amount
|
|
91
111
|
tax_line = vat_book.received_line_ids.tax_line_ids.filtered(
|
|
92
112
|
lambda x: "account_tax_template_p_iva0_nd" in x.tax_id.get_external_id()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-l10n_es_vat_book
|
|
3
|
-
Version: 16.0.2.0.
|
|
3
|
+
Version: 16.0.2.0.2
|
|
4
4
|
Summary: Libro de IVA
|
|
5
5
|
Home-page: https://github.com/OCA/l10n-spain
|
|
6
6
|
Author: PRAXYA, ForgeFlow, Tecnativa, Odoo Community Association (OCA)
|
|
@@ -28,7 +28,7 @@ Libro de IVA
|
|
|
28
28
|
!! This file is generated by oca-gen-addon-readme !!
|
|
29
29
|
!! changes will be overwritten. !!
|
|
30
30
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
31
|
-
!! source digest: sha256:
|
|
31
|
+
!! source digest: sha256:287d6585a93fc073370e7d6128261e85e4c4997615f19ce2fdd97cf4fa4163d8
|
|
32
32
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
33
33
|
|
|
34
34
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/l10n_es_vat_book/README.rst,sha256=
|
|
1
|
+
odoo/addons/l10n_es_vat_book/README.rst,sha256=bQwnkxHhSufyfabKf_COdPfreJ4NkdB91fyzCQbLxrA,5315
|
|
2
2
|
odoo/addons/l10n_es_vat_book/__init__.py,sha256=RYGen4VvN9c8GXvMfZMuO7ERiyRCUJfuAbgo0aC3DEU,42
|
|
3
|
-
odoo/addons/l10n_es_vat_book/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/l10n_es_vat_book/__manifest__.py,sha256=DippfUrizjx2oUnKbLc5T-Bq1sTZtDjMAa3Fb_76oXc,1275
|
|
4
4
|
odoo/addons/l10n_es_vat_book/data/aeat_vat_book_map_data.xml,sha256=KvsMd0lineW_PT923wnIli94RjqDx_oh_Gfv67WX6Ms,9462
|
|
5
5
|
odoo/addons/l10n_es_vat_book/i18n/bg.po,sha256=UpA4gRrxJVLMfVS3O6h5cJUUa5rGVs7QuDm6w3vSUq8,35992
|
|
6
6
|
odoo/addons/l10n_es_vat_book/i18n/ca.po,sha256=VKPE69I3FzMQTwi14NhQTHEk9f6HcuiVia4N5sR8I-A,41569
|
|
@@ -26,7 +26,7 @@ odoo/addons/l10n_es_vat_book/i18n/vi.po,sha256=IZ3miUJaRO-ZSr7R-U95hNiZtkt68fjpF
|
|
|
26
26
|
odoo/addons/l10n_es_vat_book/migrations/16.0.2.0.0/post-migration.py,sha256=QRoxJbbiygJ1P0Q3QVlzP6ZeVMxQfcUIf5BnpRqwJng,283
|
|
27
27
|
odoo/addons/l10n_es_vat_book/models/__init__.py,sha256=V0ONDc9wKn8JF0Soh2NCORHEAQ7EcOn16SNkxjA50WU,226
|
|
28
28
|
odoo/addons/l10n_es_vat_book/models/aeat_vat_book_map_line.py,sha256=IWdvWME1lnp4WBg93duQGkwr6Zpy9wE5wM0MQ5A1Q24,1437
|
|
29
|
-
odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book.py,sha256=
|
|
29
|
+
odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book.py,sha256=uqDK4xQWiChWMg3dLON8Fw9vMTeJTOIVlIe-RwWfrtE,22170
|
|
30
30
|
odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_line.py,sha256=9LqiNYUGomYBVIyvdT1qTnNwHKTM3df6jJxWvnoIsLk,2146
|
|
31
31
|
odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_line_tax.py,sha256=Uoid5DEQc07Bz5r7JqfKbkd91LGqR_1tsfq1VXkaSQw,2440
|
|
32
32
|
odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_summary.py,sha256=jKvai8td7NQwT2suuY-dA1AfQxRvM6VBIVuHZnfwSrY,1208
|
|
@@ -47,15 +47,15 @@ odoo/addons/l10n_es_vat_book/report/vat_book_xlsx.xml,sha256=sZd6sU-mnZUN-odM8R5
|
|
|
47
47
|
odoo/addons/l10n_es_vat_book/security/ir.model.access.csv,sha256=D-VRSm4gZ7A0LOlIH9JL-EXkH7EzbubObuFL634GuUs,871
|
|
48
48
|
odoo/addons/l10n_es_vat_book/security/ir_rule.xml,sha256=4HkdO_WPIAK6hXcVUIFTLmzl0af-tVplhO-o2Xsic1M,521
|
|
49
49
|
odoo/addons/l10n_es_vat_book/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
50
|
-
odoo/addons/l10n_es_vat_book/static/description/index.html,sha256=
|
|
50
|
+
odoo/addons/l10n_es_vat_book/static/description/index.html,sha256=q0dK7SDaA-MCXz24JR1VVR3RnWxS7hvKPkV6RkzqDbA,16646
|
|
51
51
|
odoo/addons/l10n_es_vat_book/tests/__init__.py,sha256=4dynCSzE14Nz6hAqV9vEmx8lEt3Byn-gqNKA0-wj7uc,41
|
|
52
|
-
odoo/addons/l10n_es_vat_book/tests/test_l10n_es_aeat_vat_book.py,sha256=
|
|
52
|
+
odoo/addons/l10n_es_vat_book/tests/test_l10n_es_aeat_vat_book.py,sha256=5xCKL8AAehzH5V-5kzOHLRO55t6eAmakIaRrTv9Ve_k,5976
|
|
53
53
|
odoo/addons/l10n_es_vat_book/views/aeat_vat_book_map_view.xml,sha256=57r8qyI1KZCeoqDrs7bBt2K3UF85vJxi0ZXWMDUsZuc,1278
|
|
54
54
|
odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book.xml,sha256=tGOI04-SsWENVcv8JJVmnlOzRMhYOO2ek7nEy5T0GRA,5649
|
|
55
55
|
odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book_line.xml,sha256=DyJY5YXkzqNjepNI88FKklb-DZs-Kg2Fn5-rfXdWevI,4760
|
|
56
56
|
odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book_summary.xml,sha256=PTX2BDmnE6bIZjlMlRH6R479DdZgDPzG0WO_e-iC2gU,1333
|
|
57
57
|
odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book_tax_summary.xml,sha256=HGDXXDWt3hVT3HEd-QXg_w9DGsiiZ_BDBG1YJUtVZ4Y,2086
|
|
58
|
-
odoo_addon_l10n_es_vat_book-16.0.2.0.
|
|
59
|
-
odoo_addon_l10n_es_vat_book-16.0.2.0.
|
|
60
|
-
odoo_addon_l10n_es_vat_book-16.0.2.0.
|
|
61
|
-
odoo_addon_l10n_es_vat_book-16.0.2.0.
|
|
58
|
+
odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info/METADATA,sha256=LIsMKvUwrHEItdG9xxIG5kir_svXCNiuoEXNXrbPLgE,5947
|
|
59
|
+
odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
60
|
+
odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
61
|
+
odoo_addon_l10n_es_vat_book-16.0.2.0.2.dist-info/RECORD,,
|
|
File without changes
|