Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f49b285
[ADD] l10n_es_vat_prorate
etobella Jan 13, 2022
0195d27
[IMP] l10n_es_vat_prorate: black, isort, prettier
sanchonuria Nov 4, 2022
666da01
[MIG] l10n_es_vat_prorate: Migration to 14.0
sanchonuria Nov 4, 2022
0260a65
[FIX] l10n_es_vat_prorate: signature was wrong
etobella Jan 12, 2023
f06fb63
[IMP] l10n_es_vat_prorrate: Allow to manage directly with l10n_es_aea…
etobella Dec 1, 2022
b27d4c0
[FIX+IMP] l10n_es_aeat*: VAT prorate proper encapsulation + names + t…
pedrobaeza Mar 8, 2023
f516700
[FIX] l10n_es_vat_prorate: Handle analytic information
pedrobaeza Mar 17, 2023
b103732
[IMP] l10n_es_vat_prorate: Onchange should apply on invoice line, not…
etobella Apr 19, 2023
87a1f72
[FIX] l10n_es_vat_prorate: Adapt tests to the revert of the inclusion…
pedrobaeza May 27, 2023
a977a22
[IMP] l10n_es_vat_prorate: Manage intracommunity and extracommunity t…
etobella Jun 6, 2023
49b07b0
[FIX] l10n_es_vat_prorate: Handle properly prorate refund account
pedrobaeza Aug 7, 2023
db5e41b
[MIG] l10n_es_vat_prorate: Migration to 15.0
pedrobaeza Jul 25, 2023
2030979
[MIG] l10n_es_vat_prorate: Migration to 16.0
pedrobaeza Aug 9, 2023
931c274
[FIX] l10n_es_vat_prorate: Restrict vat prorate value
carolinafernandez-tecnativa Sep 11, 2023
1308ce5
l10n_es_vat_prorate 16.0.1.0.1
OCA-git-bot Sep 11, 2023
d596024
Added translation using Weblate (Spanish)
Ivorra78 Sep 26, 2023
ca797bc
Translated using Weblate (Spanish)
Ivorra78 Sep 26, 2023
614148a
Added translation using Weblate (Catalan)
BrunoBailo Jan 4, 2024
57e70b3
Translated using Weblate (Catalan)
BrunoBailo Jan 4, 2024
e047878
[IMP] l10n_es_vat_prorate: Indicate incompatibility with cash basis
pedrobaeza Mar 22, 2024
db46e58
[IMP] l10n_es_vat_prorate: black, isort, prettier
manuelregidor May 16, 2024
5ed1f34
[MIG] l10n_es_vat_prorate: Migration to 17.0
manuelregidor May 16, 2024
4bf5b79
[IMP]l10n_es_vat_prorate: add special vat prorrate
Tisho99 Jun 4, 2024
3d0fcc8
[IMP] l10n_es_vat_prorate: move prorate type to prorate level and add…
Tisho99 Jul 23, 2024
9d2a04a
[IMP] l10n_es_aeat_mod303_vat_prorate: adaptation to dependences refa…
Tisho99 Jul 29, 2024
97ce775
Translated using Weblate (Spanish)
Tisho99 Sep 2, 2024
e868735
Translated using Weblate (Catalan)
Tisho99 Sep 2, 2024
81a6cb5
[FIX] l10n_es_*: Fix intra/extra-community taxes refs and new exempt …
pedrobaeza Mar 18, 2025
457c9e7
[FIX] l10n_es_vat_prorate: Avoid false prorate lines
pedrobaeza Jul 11, 2025
2edd330
[IMP+FIX+I18N] l10n_es_vat_prorate: Feedback from v16 backport
pedrobaeza Jul 16, 2025
2426fdb
[MIG] l10n_es_vat_prorate: Migration to 18.0
Andrii9090 Oct 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions l10n_es_vat_prorate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
===============
Prorrata de IVA
===============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c5c6996e6f770ca45a4ced8f953744d9b5ba985f4606fa5cb4c8a2979387ee16
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--spain-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_vat_prorate
:alt: OCA/l10n-spain
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_vat_prorate
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-spain&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

El módulo nos divide los IVA según la prorrata de la compañía.

**Table of contents**

.. contents::
:local:

Configuration
=============

Para configurar la prorrata general:

- Acceda a la compañía y marque que aplica prorrata.
- Defina el porcentaje de prorrata (se aplica por fechas).

Los impuestos de las facturas de proveedor se dividirán según la
prorrata activa.

Para configurar la prorrata especial:

- Acceda a la compañía y marque que aplica prorrata de IVA especial.
- Marque el valor por defecto de la prorrata especial.

En las líneas de factura aparecerá un nuevo campo editable, con el valor
por defecto configurado, que permitirá definir que líneas serán
prorrateadas.

Known issues / Roadmap
======================

- No compatible con criterio de caja.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_vat_prorate%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Creu Blanca
* Tecnativa

Contributors
------------

- Enric Tobella
- `Tecnativa <https://www.tecnativa.com/>`__:

- Pedro M. Baeza
- Carolina Fernandez

- `Sygel <https://www.sygel.es/>`__:

- Harald Panten
- Manuel Regidor
- Alberto Martínez
- Anxo82
- ValentinVinagre

- `Moduon <https://www.moduon.team/>`__:

- Rafael Blasco
- Andrii Kompaniiets
- Emilio Pascual

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn
.. |maintainer-Andrii9090| image:: https://github.com/Andrii9090.png?size=40px
:target: https://github.com/Andrii9090
:alt: Andrii9090
.. |maintainer-EmilioPascual| image:: https://github.com/EmilioPascual.png?size=40px
:target: https://github.com/EmilioPascual
:alt: EmilioPascual

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-rafaelbn| |maintainer-Andrii9090| |maintainer-EmilioPascual|

This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/18.0/l10n_es_vat_prorate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions l10n_es_vat_prorate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import pre_init_hook
22 changes: 22 additions & 0 deletions l10n_es_vat_prorate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 Creu Blanca
# Copyright 2023 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Prorrata de IVA",
"summary": "Prorrata de IVA para la localización española",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"pre_init_hook": "pre_init_hook",
"depends": ["l10n_es_aeat"],
"maintainers": ["rafaelbn", "Andrii9090", "EmilioPascual"],
"data": [
"security/ir.model.access.csv",
"views/account_move_views.xml",
"views/account_tax_views.xml",
"views/res_company_prorate_views.xml",
"views/res_company_views.xml",
],
}
27 changes: 27 additions & 0 deletions l10n_es_vat_prorate/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 Alberto Martínez <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging


def pre_init_hook(env):
"""Create computed columns if not exists when the module is installed"""
logger = logging.getLogger(__name__)
logger.info("Prepopulating stored related fields")
env.cr.execute(
"""
ALTER TABLE account_move
ADD COLUMN IF NOT EXISTS prorate_id integer;
"""
)
env.cr.execute(
"""
ALTER TABLE account_move
ADD COLUMN IF NOT EXISTS with_special_vat_prorate BOOLEAN;
"""
)
env.cr.execute(
"""
ALTER TABLE account_move_line
ADD COLUMN IF NOT EXISTS with_vat_prorate BOOLEAN;
"""
)
Loading