Skip to content

Commit 712541c

Browse files
committed
Merge PR #4841 into 18.0
Signed-off-by pedrobaeza
2 parents 0afcf6a + 5f93e5a commit 712541c

14 files changed

Lines changed: 756 additions & 0 deletions

File tree

l10n_es_vat_book_pos/README.rst

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
=======================================
2+
Libro de IVA Adaptado al Punto de Venta
3+
=======================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:c0310692b218ef7f6f2d286c0f7d399aa8d07266fe3fa9fa4bb918dfc34e276a
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_pos
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_pos
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+
Módulo extensión al l10n_es_vat_book adaptado al Punto de Venta para que
32+
las lineas del libro no den error si no tienen un cliente asociado.
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_pos%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+
* APSL-Nagarro
56+
57+
Contributors
58+
------------
59+
60+
- [APSL-Nagarro](https://apsl.tech):
61+
62+
- Antoni Marroig <amarroig@apsl.net>
63+
64+
Maintainers
65+
-----------
66+
67+
This module is maintained by the OCA.
68+
69+
.. image:: https://odoo-community.org/logo.png
70+
:alt: Odoo Community Association
71+
:target: https://odoo-community.org
72+
73+
OCA, or the Odoo Community Association, is a nonprofit organization whose
74+
mission is to support the collaborative development of Odoo features and
75+
promote its widespread use.
76+
77+
.. |maintainer-peluko00| image:: https://github.com/peluko00.png?size=40px
78+
:target: https://github.com/peluko00
79+
:alt: peluko00
80+
81+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
82+
83+
|maintainer-peluko00|
84+
85+
This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_vat_book_pos>`_ project on GitHub.
86+
87+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

l10n_es_vat_book_pos/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2025 APSL-Nagarro Antoni Marroig
2+
# Copyright 2026 Pol Reig
3+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
4+
{
5+
"name": "Libro de IVA Adaptado al Punto de Venta",
6+
"version": "18.0.1.0.0",
7+
"category": "Accounting",
8+
"website": "https://github.com/OCA/l10n-spain",
9+
"author": "APSL-Nagarro, Odoo Community Association (OCA)",
10+
"maintainers": ["peluko00"],
11+
"license": "AGPL-3",
12+
"application": False,
13+
"installable": True,
14+
"depends": ["l10n_es_vat_book", "point_of_sale"],
15+
}
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_pos
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_pos
17+
#: model:ir.model,name:l10n_es_vat_book_pos.model_l10n_es_vat_book
18+
msgid "Spanish VAT book report"
19+
msgstr ""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import l10n_es_vat_book
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2025 APSL-Nagarro Antoni Marroig
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import models
5+
6+
7+
class L10nEsVatBook(models.Model):
8+
_inherit = "l10n.es.vat.book"
9+
10+
def _check_exceptions(self, line_vals):
11+
res = super()._check_exceptions(line_vals)
12+
pos_session = self.env["pos.session"].search(
13+
[("move_id", "=", line_vals["move_id"])]
14+
)
15+
if pos_session and not line_vals["partner_id"]:
16+
line_vals.pop("exception_text")
17+
return res
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- \[APSL-Nagarro\](<https://apsl.tech>):
2+
- Antoni Marroig \<<amarroig@apsl.net>\>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Módulo extensión al l10n_es_vat_book adaptado al Punto de Venta para que las lineas del libro no den error si no tienen un cliente asociado.
9.23 KB
Loading

0 commit comments

Comments
 (0)