Skip to content

Commit 54ee878

Browse files
committed
Merge PR #4509 into 18.0
Signed-off-by pedrobaeza
2 parents 21f8642 + da485ca commit 54ee878

File tree

14 files changed

+656
-0
lines changed

14 files changed

+656
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
================================
2+
Facturas resumen en libro de IVA
3+
================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:ddb843713b4795356906bca2f68af3d4cfac9cf07cfb6c246d588e368926ecc3
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github
20+
:target: https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_vat_book_invoice_summary
21+
:alt: OCA/l10n-spain
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_book_invoice_summary
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Se rellenan las casillas de resumen de las facturas emitidas en el excel
32+
de Libro de IVA
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Bug Tracker
40+
===========
41+
42+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/issues>`_.
43+
In case of trouble, please check there if your issue has already been reported.
44+
If you spotted it first, help us to smash it by providing a detailed and welcomed
45+
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_vat_book_invoice_summary%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
46+
47+
Do not contact contributors directly about support or help with technical issues.
48+
49+
Credits
50+
=======
51+
52+
Authors
53+
-------
54+
55+
* Tecnativa
56+
57+
Contributors
58+
------------
59+
60+
- `Tecnativa <https://www.tecnativa.com>`__:
61+
62+
- Víctor Martínez
63+
- Pedro M. Baeza
64+
65+
Maintainers
66+
-----------
67+
68+
This module is maintained by the OCA.
69+
70+
.. image:: https://odoo-community.org/logo.png
71+
:alt: Odoo Community Association
72+
:target: https://odoo-community.org
73+
74+
OCA, or the Odoo Community Association, is a nonprofit organization whose
75+
mission is to support the collaborative development of Odoo features and
76+
promote its widespread use.
77+
78+
.. |maintainer-victoralmau| image:: https://github.com/victoralmau.png?size=40px
79+
:target: https://github.com/victoralmau
80+
:alt: victoralmau
81+
82+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
83+
84+
|maintainer-victoralmau|
85+
86+
This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_vat_book_invoice_summary>`_ project on GitHub.
87+
88+
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 . import report
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2024 Tecnativa - Víctor Martínez
2+
# Copyright 2025 Tecnativa - Pedro M. Baeza
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4+
{
5+
"name": "Facturas resumen en libro de IVA",
6+
"version": "18.0.1.0.0",
7+
"depends": ["l10n_es_aeat_sii_invoice_summary", "l10n_es_vat_book"],
8+
"category": "Accounting & Finance",
9+
"author": "Tecnativa, Odoo Community Association (OCA)",
10+
"license": "AGPL-3",
11+
"website": "https://github.com/OCA/l10n-spain",
12+
"installable": True,
13+
"maintainers": ["victoralmau"],
14+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * l10n_es_vat_book_invoice_summary
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-05-23 11:36+0000\n"
10+
"PO-Revision-Date: 2024-05-23 11:36+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: \n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: \n"
17+
"Plural-Forms: \n"
18+
19+
#. module: l10n_es_vat_book_invoice_summary
20+
#: model:ir.model,name:l10n_es_vat_book_invoice_summary.model_report_l10n_es_vat_book_l10n_es_vat_book_xlsx
21+
msgid "Vat Number Xlsx"
22+
msgstr "Número de IVA Xlsx"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * l10n_es_vat_book_invoice_summary
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: l10n_es_vat_book_invoice_summary
17+
#: model:ir.model,name:l10n_es_vat_book_invoice_summary.model_report_l10n_es_vat_book_l10n_es_vat_book_xlsx
18+
msgid "Vat Number Xlsx"
19+
msgstr ""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [Tecnativa](https://www.tecnativa.com):
2+
- Víctor Martínez
3+
- Pedro M. Baeza
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Se rellenan las casillas de resumen de las facturas emitidas en el excel
2+
de Libro de IVA
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import vat_book_xlsx
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2024 Tecnativa - Víctor Martínez
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+
4+
from odoo import models
5+
6+
7+
class VatNumberXlsx(models.AbstractModel):
8+
_inherit = "report.l10n_es_vat_book.l10n_es_vat_book_xlsx"
9+
10+
def fill_issued_row_data(
11+
self, sheet, row, line, tax_line, with_total, draft_export
12+
):
13+
"""Add final number if move has is_invoice_summary."""
14+
res = super().fill_issued_row_data(
15+
sheet, row, line, tax_line, with_total, draft_export
16+
)
17+
if line.move_id.is_invoice_summary:
18+
sheet.write("D" + str(row), line.move_id.sii_invoice_summary_start)
19+
sheet.write("E" + str(row), line.move_id.sii_invoice_summary_end)
20+
return res

0 commit comments

Comments
 (0)