odoo-addon-l10n-es-aeat 18.0.1.3.3.12__py3-none-any.whl → 18.0.1.3.4__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.
- odoo/addons/l10n_es_aeat/README.rst +1 -1
- odoo/addons/l10n_es_aeat/__manifest__.py +1 -1
- odoo/addons/l10n_es_aeat/models/l10n_es_aeat_map_tax_line.py +19 -0
- odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report.py +6 -2
- odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report_tax_mapping.py +1 -8
- odoo/addons/l10n_es_aeat/static/description/index.html +1 -1
- {odoo_addon_l10n_es_aeat-18.0.1.3.3.12.dist-info → odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info}/METADATA +2 -2
- {odoo_addon_l10n_es_aeat-18.0.1.3.3.12.dist-info → odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info}/RECORD +10 -10
- {odoo_addon_l10n_es_aeat-18.0.1.3.3.12.dist-info → odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info}/WHEEL +0 -0
- {odoo_addon_l10n_es_aeat-18.0.1.3.3.12.dist-info → odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ AEAT Base
|
|
|
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:83d24cc0234cc6d7e185bd03c1ec8fa223e379ea91ba7bdff8b3f92af7c7f317
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
|
@@ -73,6 +73,25 @@ class L10nEsAeatMapTaxLine(models.Model):
|
|
|
73
73
|
account_ids.add(account_id)
|
|
74
74
|
return self.env["account.account"].browse(list(account_ids))
|
|
75
75
|
|
|
76
|
+
def _get_amount_from_moves(self, move_lines):
|
|
77
|
+
"""
|
|
78
|
+
Get the amount from the given move lines according to the
|
|
79
|
+
configuration of the mapping line.
|
|
80
|
+
:param move_lines: browse_record(account.move.line)
|
|
81
|
+
:return: The amount calculated from the move lines.
|
|
82
|
+
:rtype: float
|
|
83
|
+
"""
|
|
84
|
+
self.ensure_one()
|
|
85
|
+
if self.sum_type == "credit":
|
|
86
|
+
amount = sum(move_lines.mapped("credit"))
|
|
87
|
+
elif self.sum_type == "debit":
|
|
88
|
+
amount = sum(move_lines.mapped("debit"))
|
|
89
|
+
else: # self.sum_type == 'both'
|
|
90
|
+
amount = sum(move_lines.mapped("credit")) - sum(move_lines.mapped("debit"))
|
|
91
|
+
if self.inverse:
|
|
92
|
+
amount = (-1.0) * amount
|
|
93
|
+
return amount
|
|
94
|
+
|
|
76
95
|
|
|
77
96
|
class L10nEsAeatMapTaxLineTax(models.Model):
|
|
78
97
|
_name = "l10n.es.aeat.map.tax.line.tax"
|
|
@@ -329,7 +329,7 @@ class L10nEsAeatReport(models.AbstractModel):
|
|
|
329
329
|
|
|
330
330
|
@api.model
|
|
331
331
|
def _report_identifier_get(self, vals):
|
|
332
|
-
seq_name =
|
|
332
|
+
seq_name = self._get_sequence_code()
|
|
333
333
|
company_id = vals.get("company_id", self.env.user.company_id.id)
|
|
334
334
|
seq = self.env["ir.sequence"].search(
|
|
335
335
|
[("name", "=", seq_name), ("company_id", "=", company_id)], limit=1
|
|
@@ -451,6 +451,10 @@ class L10nEsAeatReport(models.AbstractModel):
|
|
|
451
451
|
def _filter_phone(self, phone):
|
|
452
452
|
return (phone or "").replace(" ", "")[-9:]
|
|
453
453
|
|
|
454
|
+
@api.model
|
|
455
|
+
def _get_sequence_code(self):
|
|
456
|
+
return f"aeat{self._aeat_number}-sequence"
|
|
457
|
+
|
|
454
458
|
def _register_hook(self, companies=None):
|
|
455
459
|
res = None
|
|
456
460
|
if not companies:
|
|
@@ -466,7 +470,7 @@ class L10nEsAeatReport(models.AbstractModel):
|
|
|
466
470
|
% self._name
|
|
467
471
|
)
|
|
468
472
|
seq_obj = self.env["ir.sequence"]
|
|
469
|
-
sequence =
|
|
473
|
+
sequence = self._get_sequence_code()
|
|
470
474
|
if not companies:
|
|
471
475
|
companies = self.env["res.company"].search([])
|
|
472
476
|
for company in companies:
|
|
@@ -66,14 +66,7 @@ class L10nEsAeatReportTaxMapping(models.AbstractModel):
|
|
|
66
66
|
def _prepare_tax_line_vals(self, map_line):
|
|
67
67
|
self.ensure_one()
|
|
68
68
|
move_lines = self._get_tax_lines(self.date_start, self.date_end, map_line)
|
|
69
|
-
|
|
70
|
-
amount = sum(move_lines.mapped("credit"))
|
|
71
|
-
elif map_line.sum_type == "debit":
|
|
72
|
-
amount = sum(move_lines.mapped("debit"))
|
|
73
|
-
else: # map_line.sum_type == 'both'
|
|
74
|
-
amount = sum(move_lines.mapped("credit")) - sum(move_lines.mapped("debit"))
|
|
75
|
-
if map_line.inverse:
|
|
76
|
-
amount = (-1.0) * amount
|
|
69
|
+
amount = map_line._get_amount_from_moves(move_lines)
|
|
77
70
|
return {
|
|
78
71
|
"model": self._name,
|
|
79
72
|
"res_id": self.id,
|
|
@@ -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:83d24cc0234cc6d7e185bd03c1ec8fa223e379ea91ba7bdff8b3f92af7c7f317
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
377
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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"><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"><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=18.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 base para declaraciones de la AEAT, que incluye:</p>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-l10n_es_aeat
|
|
3
|
-
Version: 18.0.1.3.
|
|
3
|
+
Version: 18.0.1.3.4
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-account_tax_balance==18.0.*
|
|
6
6
|
Requires-Dist: odoo==18.0.*
|
|
@@ -30,7 +30,7 @@ AEAT Base
|
|
|
30
30
|
!! This file is generated by oca-gen-addon-readme !!
|
|
31
31
|
!! changes will be overwritten. !!
|
|
32
32
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
33
|
-
!! source digest: sha256:
|
|
33
|
+
!! source digest: sha256:83d24cc0234cc6d7e185bd03c1ec8fa223e379ea91ba7bdff8b3f92af7c7f317
|
|
34
34
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
35
35
|
|
|
36
36
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/l10n_es_aeat/README.rst,sha256=
|
|
1
|
+
odoo/addons/l10n_es_aeat/README.rst,sha256=Q0T4cbkfCt2Zf-10GtOKs5MZLJLU8W6rEt4uji2NM7I,7785
|
|
2
2
|
odoo/addons/l10n_es_aeat/__init__.py,sha256=xW1VpE1Cc91lUVymUU9XhlMyZIFMDb6L1JP6MkUWdoA,75
|
|
3
|
-
odoo/addons/l10n_es_aeat/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/l10n_es_aeat/__manifest__.py,sha256=pDlaemHmYOfcIcwSVWsvPCTsd1PH5fN4NBKrI9X6nwI,2073
|
|
4
4
|
odoo/addons/l10n_es_aeat/hooks.py,sha256=UoJZnx4XEK8jlo5mlfKIePolYnT2jKDuv3ZjYikEZZ4,1146
|
|
5
5
|
odoo/addons/l10n_es_aeat/data/aeat_partner.xml,sha256=TGFkFqnFj3DtHzP3lZIZ6el8P4dBscA-ey_ZXhp6HR4,873
|
|
6
6
|
odoo/addons/l10n_es_aeat/data/aeat_tax_agency_data.xml,sha256=yyoHB3O3gP_DeCWNJPiTQdec1N7_ZVWNCH8iPFSeji0,1054
|
|
@@ -37,9 +37,9 @@ odoo/addons/l10n_es_aeat/models/ir_cron_trigger.py,sha256=7SguQvHAzfaB_EweX9wttS
|
|
|
37
37
|
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_export_config.py,sha256=pTfg6yrYVwvccV8WqxFIbc15sUZjeFN2AbdHG9cy_2M,786
|
|
38
38
|
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_export_config_line.py,sha256=D593U1scEuTXpstsmHqpyw3ZrjTb0DZ8R41RJ5eOBBc,5117
|
|
39
39
|
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_map_tax.py,sha256=J2VLoD5gkttFs0aKtWHeW0XFf_bBfN0Gj8sV1FMCpqg,2345
|
|
40
|
-
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_map_tax_line.py,sha256=
|
|
41
|
-
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report.py,sha256=
|
|
42
|
-
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report_tax_mapping.py,sha256=
|
|
40
|
+
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_map_tax_line.py,sha256=uR4xfzwgoqr6V9qyfLyVe0bsbDWaji5WWRZXysA8KIw,3847
|
|
41
|
+
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report.py,sha256=Ahid7hK9EZSXNM87rcVdgOnlM1sO75tv6LzJKBi3qLw,17510
|
|
42
|
+
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report_tax_mapping.py,sha256=wlYnmdWtaP_Fg_Ui_JKy84k6f2olwH5bbwngqxaYGRU,8598
|
|
43
43
|
odoo/addons/l10n_es_aeat/models/l10n_es_aeat_tax_line.py,sha256=yEqJZqmeOHQqmwX3C1W1AMIhiBUnJ3Yj9ilb-c0I9nk,1315
|
|
44
44
|
odoo/addons/l10n_es_aeat/models/res_company.py,sha256=xOCPazMXlNt4n0Ke2s6WWhxlux7iSASvjQlcWJviJSg,2361
|
|
45
45
|
odoo/addons/l10n_es_aeat/models/res_partner.py,sha256=q5pvoetZy0b24-JDDjnM489QdEONx8X9eqfNobA7bSs,4968
|
|
@@ -55,7 +55,7 @@ odoo/addons/l10n_es_aeat/security/aeat_security.xml,sha256=2oCK5Ep4gL0TUxtjNlEjz
|
|
|
55
55
|
odoo/addons/l10n_es_aeat/security/ir.model.access.csv,sha256=CtnAAxlz_PmxTvqTd64UX6erJAjWWwbjdrjPZS8Rixk,2796
|
|
56
56
|
odoo/addons/l10n_es_aeat/static/description/icon.png,sha256=i7RpcAWRxyu4Jnok-dKFkKR6rMKsSWTCjf4CY_pqLe4,4342
|
|
57
57
|
odoo/addons/l10n_es_aeat/static/description/icon_source.svg,sha256=T08P2VPaoi30jw1Y-IW6T90ZitG0j0SWThstmEQ40GM,3128
|
|
58
|
-
odoo/addons/l10n_es_aeat/static/description/index.html,sha256=
|
|
58
|
+
odoo/addons/l10n_es_aeat/static/description/index.html,sha256=gONIXSisG2hKbyipa24Qy_JfozsS-0r1qgQ4-BrsF7I,19444
|
|
59
59
|
odoo/addons/l10n_es_aeat/tests/__init__.py,sha256=bAXsxEjIPnACcUG9BQPVrWmN5NOEWEMcNNfNAP7xrvE,241
|
|
60
60
|
odoo/addons/l10n_es_aeat/tests/models.py,sha256=aq7KgkBW54h0e4_Ft7kTd8kondCtDtrwoRQTSo7ViPA,319
|
|
61
61
|
odoo/addons/l10n_es_aeat/tests/test_l10n_es_aeat.py,sha256=LnI1SqE6vbNSOx_xwyzA3fD9zZFXJqcwPdp3VcLxO5c,5270
|
|
@@ -84,7 +84,7 @@ odoo/addons/l10n_es_aeat/wizard/compare_boe_file.py,sha256=MmzkFtWSt9qYI5V4A5C-m
|
|
|
84
84
|
odoo/addons/l10n_es_aeat/wizard/compare_boe_file_views.xml,sha256=wHgD1Z5VtrhqQq6TcljdwddXYwerJVp-uvDUCCYTePA,2361
|
|
85
85
|
odoo/addons/l10n_es_aeat/wizard/export_to_boe.py,sha256=pFsF3aMOnTaZd6sTpe-85J50eEFyAt99gQGU4hsU49E,9611
|
|
86
86
|
odoo/addons/l10n_es_aeat/wizard/export_to_boe_wizard.xml,sha256=4M4eDJccqFr09tuO6qGVAgLnsdyqGVHhFvX0542iN1U,2858
|
|
87
|
-
odoo_addon_l10n_es_aeat-18.0.1.3.
|
|
88
|
-
odoo_addon_l10n_es_aeat-18.0.1.3.
|
|
89
|
-
odoo_addon_l10n_es_aeat-18.0.1.3.
|
|
90
|
-
odoo_addon_l10n_es_aeat-18.0.1.3.
|
|
87
|
+
odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info/METADATA,sha256=AtGE8nbedpGqODZxku5B3Qk21RaGpLYidp19_Q4L-54,8494
|
|
88
|
+
odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
89
|
+
odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
90
|
+
odoo_addon_l10n_es_aeat-18.0.1.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|