odoo-addon-l10n-es-vat-book 15.0.2.3.0__py3-none-any.whl → 17.0.1.3.5__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 +60 -52
- odoo/addons/l10n_es_vat_book/__manifest__.py +14 -4
- odoo/addons/l10n_es_vat_book/data/aeat.vat.book.map.line.csv +6 -0
- odoo/addons/l10n_es_vat_book/data/l10n.es.aeat.map.tax.line.account.csv +2 -0
- odoo/addons/l10n_es_vat_book/data/l10n.es.aeat.map.tax.line.tax.csv +106 -0
- odoo/addons/l10n_es_vat_book/i18n/bg.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/ca.po +76 -70
- odoo/addons/l10n_es_vat_book/i18n/cs.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/de.po +29 -59
- odoo/addons/l10n_es_vat_book/i18n/es.po +80 -74
- odoo/addons/l10n_es_vat_book/i18n/es_CO.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/es_CR.po +29 -59
- odoo/addons/l10n_es_vat_book/i18n/eu.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/fr.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/gl.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/hr.po +35 -62
- odoo/addons/l10n_es_vat_book/i18n/l10n_es_vat_book.pot +30 -59
- odoo/addons/l10n_es_vat_book/i18n/nl.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/pl.po +36 -63
- odoo/addons/l10n_es_vat_book/i18n/pt.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/pt_BR.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/ru.po +32 -62
- odoo/addons/l10n_es_vat_book/i18n/sl.po +39 -65
- odoo/addons/l10n_es_vat_book/i18n/sv.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/tr.po +33 -60
- odoo/addons/l10n_es_vat_book/i18n/vi.po +33 -60
- odoo/addons/l10n_es_vat_book/models/aeat_vat_book_map_line.py +22 -7
- odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book.py +92 -65
- odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_line.py +0 -1
- odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_line_tax.py +24 -2
- odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_summary.py +3 -3
- odoo/addons/l10n_es_vat_book/models/l10n_es_vat_book_tax_summary.py +14 -0
- odoo/addons/l10n_es_vat_book/readme/CONFIGURE.md +6 -0
- odoo/addons/l10n_es_vat_book/readme/CONTRIBUTORS.md +12 -0
- odoo/addons/l10n_es_vat_book/readme/{DESCRIPTION.rst → DESCRIPTION.md} +6 -6
- odoo/addons/l10n_es_vat_book/readme/INSTALL.md +16 -0
- odoo/addons/l10n_es_vat_book/readme/ROADMAP.md +5 -0
- odoo/addons/l10n_es_vat_book/readme/USAGE.md +5 -0
- odoo/addons/l10n_es_vat_book/report/vat_book_xlsx.py +12 -12
- odoo/addons/l10n_es_vat_book/static/description/index.html +56 -45
- odoo/addons/l10n_es_vat_book/tests/test_l10n_es_aeat_vat_book.py +24 -8
- odoo/addons/l10n_es_vat_book/views/aeat_vat_book_map_view.xml +3 -2
- odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book.xml +20 -23
- odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book_line.xml +39 -46
- odoo/addons/l10n_es_vat_book/views/l10n_es_vat_book_tax_summary.xml +17 -0
- {odoo_addon_l10n_es_vat_book-15.0.2.3.0.dist-info → odoo_addon_l10n_es_vat_book-17.0.1.3.5.dist-info}/METADATA +69 -63
- odoo_addon_l10n_es_vat_book-17.0.1.3.5.dist-info/RECORD +62 -0
- {odoo_addon_l10n_es_vat_book-15.0.2.3.0.dist-info → odoo_addon_l10n_es_vat_book-17.0.1.3.5.dist-info}/WHEEL +1 -1
- odoo_addon_l10n_es_vat_book-17.0.1.3.5.dist-info/top_level.txt +1 -0
- odoo/addons/l10n_es_vat_book/data/aeat_vat_book_map_data.xml +0 -121
- odoo/addons/l10n_es_vat_book/readme/CONFIGURE.rst +0 -6
- odoo/addons/l10n_es_vat_book/readme/CONTRIBUTORS.rst +0 -12
- odoo/addons/l10n_es_vat_book/readme/INSTALL.rst +0 -18
- odoo/addons/l10n_es_vat_book/readme/ROADMAP.rst +0 -4
- odoo/addons/l10n_es_vat_book/readme/USAGE.rst +0 -5
- odoo_addon_l10n_es_vat_book-15.0.2.3.0.dist-info/RECORD +0 -60
- odoo_addon_l10n_es_vat_book-15.0.2.3.0.dist-info/top_level.txt +0 -1
|
@@ -20,3 +20,17 @@ class L10nEsVatBookIssuedTaxSummary(models.Model):
|
|
|
20
20
|
required=True,
|
|
21
21
|
ondelete="cascade",
|
|
22
22
|
)
|
|
23
|
+
base_move_line_ids = fields.Many2many(
|
|
24
|
+
comodel_name="account.move.line",
|
|
25
|
+
string="Journal items (Base)",
|
|
26
|
+
relation="account_move_line_l10n_es_vat_book_tax_summary_base_rel",
|
|
27
|
+
)
|
|
28
|
+
move_line_ids = fields.Many2many(
|
|
29
|
+
comodel_name="account.move.line", string="Journal items"
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
def view_move_lines_base(self):
|
|
33
|
+
return self.env["l10n.es.aeat.report"]._view_move_lines(self.base_move_line_ids)
|
|
34
|
+
|
|
35
|
+
def view_move_lines_tax(self):
|
|
36
|
+
return self.env["l10n.es.aeat.report"]._view_move_lines(self.move_line_ids)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Los códigos de impuestos incluidos en el Libro de IVA pueden verse en:
|
|
2
|
+
Contabilidad -\> Configuración -\> AEAT -\> Mapeo AEAT libro de IVA
|
|
3
|
+
|
|
4
|
+
Los clientes utilizados para ventas por caja deben tener marcado el
|
|
5
|
+
campo "AEAT - Cliente anónimo" para que no se muestren advertencias por
|
|
6
|
+
no tener NIF informado siguiendo lo especificado en el formato BOE.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
- Daniel Rodriguez \<<drl.9319@gmail.com>\>
|
|
2
|
+
- Jordi Ballester (ForgeFlow) \<<jordi.ballester@forgeflow.com>\>
|
|
3
|
+
- Luis M. Ontalba \<<luismaront@gmail.com>\>
|
|
4
|
+
- [Tecnativa](https://www.tecnativa.com/):
|
|
5
|
+
- Pedro M. Baeza
|
|
6
|
+
- Carlos Dauden
|
|
7
|
+
- Ernesto Tejeda
|
|
8
|
+
- Omar Castiñeira \<<omar@comunitea.com>\>
|
|
9
|
+
- Fernando La Chica \<<fernandolachica@gmail.com>\>
|
|
10
|
+
- Victor Garcia \<<victor.garcia@kayuulab.com>\>
|
|
11
|
+
- Luis Lafaurie \<<ldlafaurie@gmail.com>\>
|
|
12
|
+
- Eduardo de miguel \<<edu@moduon.team>\>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Módulo que calcula el libro de IVA español.
|
|
2
2
|
|
|
3
|
-
Esto módulo introduce el menú "Libro de IVA" en Contabilidad
|
|
4
|
-
Declaraciones AEAT
|
|
3
|
+
Esto módulo introduce el menú "Libro de IVA" en Contabilidad -\> Informe
|
|
4
|
+
-\> Declaraciones AEAT -\> Libro de IVA.
|
|
5
5
|
|
|
6
6
|
Es posible visualizar e imprimir por separado:
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
- Libro Registro de Facturas Emitidas
|
|
9
|
+
- Libro Registro de Facturas Recibidas
|
|
10
10
|
|
|
11
11
|
Es posible exportar los registros a archivo con extensión xlsx.
|
|
12
12
|
|
|
13
|
-
En el modo de visualización de los informes es posible navegar a los
|
|
14
|
-
contables relacionados con la factura.
|
|
13
|
+
En el modo de visualización de los informes es posible navegar a los
|
|
14
|
+
asientos contables relacionados con la factura.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Para instalar este modulo necesitas:
|
|
2
|
+
|
|
3
|
+
- account
|
|
4
|
+
- base_vat
|
|
5
|
+
- l10n_es
|
|
6
|
+
- l10n_es_aeat
|
|
7
|
+
- report_xlsx
|
|
8
|
+
|
|
9
|
+
Se instalan automáticamente si están disponibles en la lista de addons.
|
|
10
|
+
|
|
11
|
+
Consideraciones adicionales:
|
|
12
|
+
|
|
13
|
+
- Es importante que en facturas que deban aparecer en los libros
|
|
14
|
+
registros, no sujetos a IVA, informar el tipo de IVA 'No Sujeto' en
|
|
15
|
+
facturas. Para evitar que los usuarios olviden informarlo es
|
|
16
|
+
recomendable instalar el módulo 'account_invoice_tax_required'.
|
|
@@ -23,8 +23,8 @@ class VatNumberXlsx(models.AbstractModel):
|
|
|
23
23
|
|
|
24
24
|
@ormcache("self.env")
|
|
25
25
|
def _get_undeductible_taxes(self, book):
|
|
26
|
-
|
|
27
|
-
return
|
|
26
|
+
map_line = self.env.ref("l10n_es_vat_book.aeat_vat_book_map_line_p_iva_nd")
|
|
27
|
+
return map_line.get_taxes_for_company(book.company_id)
|
|
28
28
|
|
|
29
29
|
def _get_vat_book_map_lines(self, book_type):
|
|
30
30
|
return self.env["aeat.vat.book.map.line"].search(
|
|
@@ -83,13 +83,13 @@ class VatNumberXlsx(models.AbstractModel):
|
|
|
83
83
|
last_col = "O"
|
|
84
84
|
for line in self._get_vat_book_map_lines("issued"):
|
|
85
85
|
sheet.merge_range(
|
|
86
|
-
"{
|
|
87
|
-
"Tipo de {
|
|
86
|
+
f"{line.fee_type_xlsx_column}6:{line.fee_type_xlsx_column}7",
|
|
87
|
+
f"Tipo de {line.name}",
|
|
88
88
|
header_format,
|
|
89
89
|
)
|
|
90
90
|
sheet.merge_range(
|
|
91
|
-
"{
|
|
92
|
-
"Cuota {
|
|
91
|
+
f"{line.fee_amount_xlsx_column}6:{line.fee_amount_xlsx_column}7",
|
|
92
|
+
f"Cuota {line.name}",
|
|
93
93
|
header_format,
|
|
94
94
|
)
|
|
95
95
|
last_col = line.fee_amount_xlsx_column
|
|
@@ -241,13 +241,13 @@ class VatNumberXlsx(models.AbstractModel):
|
|
|
241
241
|
last_col = "Q"
|
|
242
242
|
for line in self._get_vat_book_map_lines("received"):
|
|
243
243
|
sheet.merge_range(
|
|
244
|
-
"{
|
|
245
|
-
"Tipo de {
|
|
244
|
+
f"{line.fee_type_xlsx_column}6:{line.fee_type_xlsx_column}7",
|
|
245
|
+
f"Tipo de {line.name}",
|
|
246
246
|
header_format,
|
|
247
247
|
)
|
|
248
248
|
sheet.merge_range(
|
|
249
|
-
"{
|
|
250
|
-
"Cuota {
|
|
249
|
+
f"{line.fee_amount_xlsx_column}6:{line.fee_amount_xlsx_column}7",
|
|
250
|
+
f"Cuota {line.name}",
|
|
251
251
|
header_format,
|
|
252
252
|
)
|
|
253
253
|
last_col = line.fee_amount_xlsx_column
|
|
@@ -354,7 +354,7 @@ class VatNumberXlsx(models.AbstractModel):
|
|
|
354
354
|
# Issued
|
|
355
355
|
issued_sheet = self.create_issued_sheet(workbook, book, draft_export)
|
|
356
356
|
lines = book.issued_line_ids + book.rectification_issued_line_ids
|
|
357
|
-
lines = lines.sorted(key=lambda
|
|
357
|
+
lines = lines.sorted(key=lambda x: (x.invoice_date, x.ref))
|
|
358
358
|
row = 8
|
|
359
359
|
for line in lines:
|
|
360
360
|
with_total = True
|
|
@@ -370,7 +370,7 @@ class VatNumberXlsx(models.AbstractModel):
|
|
|
370
370
|
# Received
|
|
371
371
|
received_sheet = self.create_received_sheet(workbook, book, draft_export)
|
|
372
372
|
lines = book.received_line_ids + book.rectification_received_line_ids
|
|
373
|
-
lines = lines.sorted(key=lambda
|
|
373
|
+
lines = lines.sorted(key=lambda x: (x.invoice_date, x.ref))
|
|
374
374
|
row = 8
|
|
375
375
|
for line in lines:
|
|
376
376
|
with_total = True
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
3
|
<head>
|
|
5
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
-
<meta name="generator" content="Docutils
|
|
7
|
-
<title>
|
|
5
|
+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
|
6
|
+
<title>README.rst</title>
|
|
8
7
|
<style type="text/css">
|
|
9
8
|
|
|
10
9
|
/*
|
|
11
10
|
:Author: David Goodger (goodger@python.org)
|
|
12
|
-
:Id: $Id: html4css1.css
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
13
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
|
14
13
|
|
|
15
14
|
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
16
16
|
|
|
17
|
-
See
|
|
17
|
+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
18
18
|
customize this style sheet.
|
|
19
19
|
*/
|
|
20
20
|
|
|
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
|
275
275
|
margin-left: 2em ;
|
|
276
276
|
margin-right: 2em }
|
|
277
277
|
|
|
278
|
-
pre.code .ln { color:
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
279
279
|
pre.code, code { background-color: #eeeeee }
|
|
280
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
@@ -301,7 +301,7 @@ span.option {
|
|
|
301
301
|
span.pre {
|
|
302
302
|
white-space: pre }
|
|
303
303
|
|
|
304
|
-
span.problematic {
|
|
304
|
+
span.problematic, pre.problematic {
|
|
305
305
|
color: red }
|
|
306
306
|
|
|
307
307
|
span.section-subtitle {
|
|
@@ -360,43 +360,50 @@ ul.auto-toc {
|
|
|
360
360
|
</style>
|
|
361
361
|
</head>
|
|
362
362
|
<body>
|
|
363
|
-
<div class="document"
|
|
364
|
-
<h1 class="title">Libro de IVA</h1>
|
|
363
|
+
<div class="document">
|
|
365
364
|
|
|
365
|
+
|
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
|
368
|
+
</a>
|
|
369
|
+
<div class="section" id="libro-de-iva">
|
|
370
|
+
<h1>Libro de IVA</h1>
|
|
366
371
|
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
367
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
373
|
!! changes will be overwritten. !!
|
|
374
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
+
!! source digest: sha256:cf298969a995b81ded17526485204b2b79eb23068b94eeb17f6f52c239476105
|
|
369
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
370
|
-
<p><a class="reference external" 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" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/
|
|
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/17.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-17-0/l10n-spain-17-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=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
371
378
|
<p>Módulo que calcula el libro de IVA español.</p>
|
|
372
|
-
<p>Esto módulo introduce el menú “Libro de IVA” en Contabilidad -> Informe
|
|
373
|
-
Declaraciones AEAT -> Libro de IVA.</p>
|
|
379
|
+
<p>Esto módulo introduce el menú “Libro de IVA” en Contabilidad -> Informe
|
|
380
|
+
-> Declaraciones AEAT -> Libro de IVA.</p>
|
|
374
381
|
<p>Es posible visualizar e imprimir por separado:</p>
|
|
375
382
|
<ul class="simple">
|
|
376
383
|
<li>Libro Registro de Facturas Emitidas</li>
|
|
377
384
|
<li>Libro Registro de Facturas Recibidas</li>
|
|
378
385
|
</ul>
|
|
379
386
|
<p>Es posible exportar los registros a archivo con extensión xlsx.</p>
|
|
380
|
-
<p>En el modo de visualización de los informes es posible navegar a los
|
|
381
|
-
contables relacionados con la factura.</p>
|
|
387
|
+
<p>En el modo de visualización de los informes es posible navegar a los
|
|
388
|
+
asientos contables relacionados con la factura.</p>
|
|
382
389
|
<p><strong>Table of contents</strong></p>
|
|
383
390
|
<div class="contents local topic" id="contents">
|
|
384
391
|
<ul class="simple">
|
|
385
|
-
<li><a class="reference internal" href="#installation" id="
|
|
386
|
-
<li><a class="reference internal" href="#configuration" id="
|
|
387
|
-
<li><a class="reference internal" href="#usage" id="
|
|
388
|
-
<li><a class="reference internal" href="#known-issues-roadmap" id="
|
|
389
|
-
<li><a class="reference internal" href="#bug-tracker" id="
|
|
390
|
-
<li><a class="reference internal" href="#credits" id="
|
|
391
|
-
<li><a class="reference internal" href="#authors" id="
|
|
392
|
-
<li><a class="reference internal" href="#contributors" id="
|
|
393
|
-
<li><a class="reference internal" href="#maintainers" id="
|
|
392
|
+
<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
|
|
393
|
+
<li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a></li>
|
|
394
|
+
<li><a class="reference internal" href="#usage" id="toc-entry-3">Usage</a></li>
|
|
395
|
+
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-4">Known issues / Roadmap</a></li>
|
|
396
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-5">Bug Tracker</a></li>
|
|
397
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-6">Credits</a><ul>
|
|
398
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-7">Authors</a></li>
|
|
399
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-8">Contributors</a></li>
|
|
400
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-9">Maintainers</a></li>
|
|
394
401
|
</ul>
|
|
395
402
|
</li>
|
|
396
403
|
</ul>
|
|
397
404
|
</div>
|
|
398
405
|
<div class="section" id="installation">
|
|
399
|
-
<
|
|
406
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Installation</a></h2>
|
|
400
407
|
<p>Para instalar este modulo necesitas:</p>
|
|
401
408
|
<ul class="simple">
|
|
402
409
|
<li>account</li>
|
|
@@ -408,23 +415,22 @@ contables relacionados con la factura.</p>
|
|
|
408
415
|
<p>Se instalan automáticamente si están disponibles en la lista de addons.</p>
|
|
409
416
|
<p>Consideraciones adicionales:</p>
|
|
410
417
|
<ul class="simple">
|
|
411
|
-
<li>Es importante que en facturas que deban aparecer en los libros
|
|
412
|
-
no sujetos a IVA, informar el tipo de IVA ‘No Sujeto’ en
|
|
413
|
-
evitar que los usuarios olviden informarlo es
|
|
414
|
-
módulo ‘account_invoice_tax_required
|
|
415
|
-
<a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0">account_invoice_tax_required</a>.</li>
|
|
418
|
+
<li>Es importante que en facturas que deban aparecer en los libros
|
|
419
|
+
registros, no sujetos a IVA, informar el tipo de IVA ‘No Sujeto’ en
|
|
420
|
+
facturas. Para evitar que los usuarios olviden informarlo es
|
|
421
|
+
recomendable instalar el módulo ‘account_invoice_tax_required’.</li>
|
|
416
422
|
</ul>
|
|
417
423
|
</div>
|
|
418
424
|
<div class="section" id="configuration">
|
|
419
|
-
<
|
|
425
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
|
|
420
426
|
<p>Los códigos de impuestos incluidos en el Libro de IVA pueden verse en:
|
|
421
427
|
Contabilidad -> Configuración -> AEAT -> Mapeo AEAT libro de IVA</p>
|
|
422
|
-
<p>Los clientes utilizados para ventas por caja deben tener marcado el
|
|
423
|
-
“AEAT - Cliente anónimo” para que no se muestren advertencias por
|
|
424
|
-
informado siguiendo lo especificado en el formato BOE.</p>
|
|
428
|
+
<p>Los clientes utilizados para ventas por caja deben tener marcado el
|
|
429
|
+
campo “AEAT - Cliente anónimo” para que no se muestren advertencias por
|
|
430
|
+
no tener NIF informado siguiendo lo especificado en el formato BOE.</p>
|
|
425
431
|
</div>
|
|
426
432
|
<div class="section" id="usage">
|
|
427
|
-
<
|
|
433
|
+
<h2><a class="toc-backref" href="#toc-entry-3">Usage</a></h2>
|
|
428
434
|
<ol class="arabic simple">
|
|
429
435
|
<li>Ve a <em>Contabilidad > Declaraciones AEAT > Libro de IVA</em>.</li>
|
|
430
436
|
<li>Crea un nuevo registro.</li>
|
|
@@ -434,25 +440,26 @@ informado siguiendo lo especificado en el formato BOE.</p>
|
|
|
434
440
|
</ol>
|
|
435
441
|
</div>
|
|
436
442
|
<div class="section" id="known-issues-roadmap">
|
|
437
|
-
<
|
|
443
|
+
<h2><a class="toc-backref" href="#toc-entry-4">Known issues / Roadmap</a></h2>
|
|
438
444
|
<p>Funcionalidades del Libro Registro de IVA no incluídas por el momento:</p>
|
|
439
445
|
<ul class="simple">
|
|
440
446
|
<li>Criterio de caja</li>
|
|
441
|
-
<li>Regímenes especiales de seguros, de agencias de viaje o de bienes
|
|
447
|
+
<li>Regímenes especiales de seguros, de agencias de viaje o de bienes
|
|
448
|
+
usados.</li>
|
|
442
449
|
</ul>
|
|
443
450
|
</div>
|
|
444
451
|
<div class="section" id="bug-tracker">
|
|
445
|
-
<
|
|
452
|
+
<h2><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h2>
|
|
446
453
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-spain/issues">GitHub Issues</a>.
|
|
447
454
|
In case of trouble, please check there if your issue has already been reported.
|
|
448
|
-
If you spotted it first, help us
|
|
449
|
-
<a class="reference external" href="https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_vat_book%0Aversion:%
|
|
455
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
456
|
+
<a class="reference external" href="https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_vat_book%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
450
457
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
451
458
|
</div>
|
|
452
459
|
<div class="section" id="credits">
|
|
453
|
-
<
|
|
460
|
+
<h2><a class="toc-backref" href="#toc-entry-6">Credits</a></h2>
|
|
454
461
|
<div class="section" id="authors">
|
|
455
|
-
<
|
|
462
|
+
<h3><a class="toc-backref" href="#toc-entry-7">Authors</a></h3>
|
|
456
463
|
<ul class="simple">
|
|
457
464
|
<li>PRAXYA</li>
|
|
458
465
|
<li>ForgeFlow</li>
|
|
@@ -460,7 +467,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|
|
460
467
|
</ul>
|
|
461
468
|
</div>
|
|
462
469
|
<div class="section" id="contributors">
|
|
463
|
-
<
|
|
470
|
+
<h3><a class="toc-backref" href="#toc-entry-8">Contributors</a></h3>
|
|
464
471
|
<ul class="simple">
|
|
465
472
|
<li>Daniel Rodriguez <<a class="reference external" href="mailto:drl.9319@gmail.com">drl.9319@gmail.com</a>></li>
|
|
466
473
|
<li>Jordi Ballester (ForgeFlow) <<a class="reference external" href="mailto:jordi.ballester@forgeflow.com">jordi.ballester@forgeflow.com</a>></li>
|
|
@@ -475,19 +482,23 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|
|
475
482
|
<li>Fernando La Chica <<a class="reference external" href="mailto:fernandolachica@gmail.com">fernandolachica@gmail.com</a>></li>
|
|
476
483
|
<li>Victor Garcia <<a class="reference external" href="mailto:victor.garcia@kayuulab.com">victor.garcia@kayuulab.com</a>></li>
|
|
477
484
|
<li>Luis Lafaurie <<a class="reference external" href="mailto:ldlafaurie@gmail.com">ldlafaurie@gmail.com</a>></li>
|
|
485
|
+
<li>Eduardo de miguel <<a class="reference external" href="mailto:edu@moduon.team">edu@moduon.team</a>></li>
|
|
478
486
|
</ul>
|
|
479
487
|
</div>
|
|
480
488
|
<div class="section" id="maintainers">
|
|
481
|
-
<
|
|
489
|
+
<h3><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h3>
|
|
482
490
|
<p>This module is maintained by the OCA.</p>
|
|
483
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
|
491
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
492
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
493
|
+
</a>
|
|
484
494
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
485
495
|
mission is to support the collaborative development of Odoo features and
|
|
486
496
|
promote its widespread use.</p>
|
|
487
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-spain/tree/
|
|
497
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-spain/tree/17.0/l10n_es_vat_book">OCA/l10n-spain</a> project on GitHub.</p>
|
|
488
498
|
<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>
|
|
489
499
|
</div>
|
|
490
500
|
</div>
|
|
491
501
|
</div>
|
|
502
|
+
</div>
|
|
492
503
|
</body>
|
|
493
504
|
</html>
|
|
@@ -32,6 +32,9 @@ class TestL10nEsAeatVatBook(TestL10nEsAeatModBase):
|
|
|
32
32
|
# Sale invoices
|
|
33
33
|
sale = self._invoice_sale_create("2017-01-13")
|
|
34
34
|
self._invoice_refund(sale, "2017-01-14")
|
|
35
|
+
# Deactivate a tax for checking that everything continues working
|
|
36
|
+
tax_id = self.company._get_tax_id_from_xmlid("account_tax_template_p_iva21_sc")
|
|
37
|
+
self.env["account.tax"].browse(tax_id).active = False
|
|
35
38
|
# Create model
|
|
36
39
|
self.company.vat = "ES12345678Z"
|
|
37
40
|
vat_book = self.env["l10n.es.vat.book"].create(
|
|
@@ -84,16 +87,29 @@ class TestL10nEsAeatVatBook(TestL10nEsAeatModBase):
|
|
|
84
87
|
self.assertAlmostEqual(line.base_amount, 100)
|
|
85
88
|
self.assertAlmostEqual(line.tax_amount, 21)
|
|
86
89
|
# Print to PDF
|
|
87
|
-
report_pdf = self.env.
|
|
88
|
-
"l10n_es_vat_book.act_report_vat_book_invoices_issued_pdf"
|
|
89
|
-
)
|
|
90
|
+
report_pdf = self.env["ir.actions.report"]._render(
|
|
91
|
+
"l10n_es_vat_book.act_report_vat_book_invoices_issued_pdf", vat_book.ids
|
|
92
|
+
)
|
|
90
93
|
self.assertGreaterEqual(len(report_pdf[0]), 1)
|
|
91
|
-
report_pdf = self.env.
|
|
92
|
-
"l10n_es_vat_book.act_report_vat_book_invoices_received_pdf"
|
|
93
|
-
)
|
|
94
|
+
report_pdf = self.env["ir.actions.report"]._render(
|
|
95
|
+
"l10n_es_vat_book.act_report_vat_book_invoices_received_pdf", vat_book.ids
|
|
96
|
+
)
|
|
94
97
|
self.assertGreaterEqual(len(report_pdf[0]), 1)
|
|
95
98
|
# Export to XLSX
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
report_xlsx = self.env["ir.actions.report"]._render(
|
|
100
|
+
"l10n_es_vat_book.l10n_es_vat_book_xlsx", vat_book.ids
|
|
101
|
+
)
|
|
98
102
|
self.assertGreaterEqual(len(report_xlsx[0]), 1)
|
|
99
103
|
self.assertEqual(report_xlsx[1], "xlsx")
|
|
104
|
+
# Check empty Vat Book
|
|
105
|
+
vat_book.write(
|
|
106
|
+
{
|
|
107
|
+
"tax_agency_ids": [
|
|
108
|
+
(4, self.env.ref("l10n_es_aeat.aeat_tax_agency_araba").id)
|
|
109
|
+
],
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
vat_book.button_calculate()
|
|
113
|
+
self.assertEqual(len(vat_book.issued_line_ids), 0)
|
|
114
|
+
self.assertEqual(len(vat_book.rectification_issued_line_ids), 0)
|
|
115
|
+
self.assertEqual(len(vat_book.issued_tax_summary_ids), 0)
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
<field name="special_tax_group" />
|
|
22
22
|
<field name="fee_type_xlsx_column" />
|
|
23
23
|
<field name="fee_amount_xlsx_column" />
|
|
24
|
-
<field name="
|
|
25
|
-
<field name="
|
|
24
|
+
<field name="tax_xmlid_ids" widget="many2many_tags" />
|
|
25
|
+
<field name="account_xmlid_id" />
|
|
26
|
+
<field name="tax_agency_ids" widget="many2many_tags" />
|
|
26
27
|
</tree>
|
|
27
28
|
</field>
|
|
28
29
|
</record>
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
2
|
<odoo>
|
|
3
|
+
<record id="view_l10n_es_vat_book_tree" model="ir.ui.view">
|
|
4
|
+
<field name="name">l10n_es.vat.book.tree</field>
|
|
5
|
+
<field name="model">l10n.es.vat.book</field>
|
|
6
|
+
<field name="inherit_id" ref="l10n_es_aeat.view_l10n_es_aeat_report_tree" />
|
|
7
|
+
<field name="mode">primary</field>
|
|
8
|
+
<field name="arch" type="xml">
|
|
9
|
+
<field name="period_type" position="after">
|
|
10
|
+
<field name="tax_agency_ids" widget="many2many_tags" />
|
|
11
|
+
</field>
|
|
12
|
+
</field>
|
|
13
|
+
</record>
|
|
3
14
|
<record id="view_l10n_es_vat_book_form" model="ir.ui.view">
|
|
4
15
|
<field name="name">l10n_es.vat.book.form</field>
|
|
5
16
|
<field name="model">l10n.es.vat.book</field>
|
|
@@ -11,47 +22,32 @@
|
|
|
11
22
|
>
|
|
12
23
|
<attribute name="invisible">True</attribute>
|
|
13
24
|
</button>
|
|
14
|
-
<header position="after">
|
|
15
|
-
<div
|
|
16
|
-
class="alert alert-warning text-center"
|
|
17
|
-
attrs="{'invisible': [('error_count', '=', 0)]}"
|
|
18
|
-
role="alert"
|
|
19
|
-
>
|
|
20
|
-
<span>
|
|
21
|
-
You have <strong class="text-danger"><field
|
|
22
|
-
name="error_count"
|
|
23
|
-
/> errors</strong> in this report.
|
|
24
|
-
You will not be able to <strong
|
|
25
|
-
>confirm and submit</strong> it until they are resolved.
|
|
26
|
-
</span>
|
|
27
|
-
</div>
|
|
28
|
-
</header>
|
|
29
25
|
<header position="inside">
|
|
30
26
|
<button
|
|
31
27
|
name="view_issued_invoices"
|
|
32
28
|
string="View Issued Invoices"
|
|
33
29
|
type="object"
|
|
34
|
-
|
|
30
|
+
invisible="state == 'draft'"
|
|
35
31
|
/>
|
|
36
32
|
<button
|
|
37
33
|
name="view_received_invoices"
|
|
38
34
|
string="View Received Invoices"
|
|
39
35
|
type="object"
|
|
40
|
-
|
|
36
|
+
invisible="state == 'draft'"
|
|
41
37
|
/>
|
|
42
38
|
<button
|
|
43
39
|
name="export_xlsx"
|
|
44
40
|
string="Export draft"
|
|
45
41
|
type="object"
|
|
46
|
-
icon="fa-file-excel"
|
|
47
|
-
|
|
42
|
+
icon="fa-file-excel-o"
|
|
43
|
+
invisible="state in ('draft', 'done')"
|
|
48
44
|
/>
|
|
49
45
|
<button
|
|
50
46
|
name="export_xlsx"
|
|
51
47
|
string="Export BOE"
|
|
52
48
|
type="object"
|
|
53
|
-
icon="fa-file-excel"
|
|
54
|
-
|
|
49
|
+
icon="fa-file-excel-o"
|
|
50
|
+
invisible="state != 'done'"
|
|
55
51
|
/>
|
|
56
52
|
</header>
|
|
57
53
|
<field name="name" position="attributes">
|
|
@@ -59,6 +55,7 @@
|
|
|
59
55
|
</field>
|
|
60
56
|
<group name="group_other_parameters" position="inside">
|
|
61
57
|
<field name="auto_renumber" />
|
|
58
|
+
<field name="tax_agency_ids" widget="many2many_tags" />
|
|
62
59
|
</group>
|
|
63
60
|
<xpath expr="//group[@name='group_declaration']" position="after">
|
|
64
61
|
<notebook>
|
|
@@ -111,7 +108,7 @@
|
|
|
111
108
|
<record model="ir.actions.act_window.view" id="action_l10n_vat_book_report_tree">
|
|
112
109
|
<field name="sequence" eval="2" />
|
|
113
110
|
<field name="view_mode">tree</field>
|
|
114
|
-
<field name="view_id" ref="
|
|
111
|
+
<field name="view_id" ref="view_l10n_es_vat_book_tree" />
|
|
115
112
|
<field name="act_window_id" ref="l10n_es_vat_book_action" />
|
|
116
113
|
</record>
|
|
117
114
|
<record model="ir.actions.act_window.view" id="action_l10n_vat_book_report_form">
|
|
@@ -122,7 +119,7 @@
|
|
|
122
119
|
</record>
|
|
123
120
|
<menuitem
|
|
124
121
|
id="menu_vat_book_report"
|
|
125
|
-
parent="l10n_es_aeat.
|
|
122
|
+
parent="l10n_es_aeat.menu_l10n_es_aeat_submenu"
|
|
126
123
|
action="l10n_es_vat_book_action"
|
|
127
124
|
name="Libro de IVA"
|
|
128
125
|
/>
|