Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
112 changes: 112 additions & 0 deletions l10n_es_aeat_sii_oss/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==================================================
Suministro Inmediato de Información en el IVA: OSS
==================================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/license-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/19.0/l10n_es_aeat_sii_oss
: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-19-0/l10n-spain-19-0-l10n_es_aeat_sii_oss
: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=19.0
:alt: Try me on Runboat

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

Este módulo compatibiliza el envío al SII de las facturas de comercio
B2C a los países intracomunitarios según el marco de la normativa
europea One-Stop Shop (OSS).

**Table of contents**

.. contents::
:local:

Installation
============

Para instalar esté módulo necesita los módulos
account_fiscal_position_partner_type y l10n_eu_oss, que se encuentran en
https://github.com/OCA/account-fiscal-rule.git

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

Para configurar este módulo es necesario:

1. En la posiciones fiscales generadas por el modulo l10n_eu_oss debemos
activarlas para el envío del SII. Ademas debemos definir en la opción
"Clave de registro SII por defecto para ventas" la clave 17 y en la
opción "Causa de no sujeción SII" definir Operaciones no sujetas en
el TAI por reglas de localización

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_aeat_sii_oss%0Aversion:%2019.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
-------

* FactorLibre
* Tecnativa

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

- Rodrigo Bonilla <rodrigo.bonilla@factorlibre.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza

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-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
:target: https://github.com/pedrobaeza
:alt: pedrobaeza

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

|maintainer-pedrobaeza|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions l10n_es_aeat_sii_oss/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2021 FactorLibre - Rodrigo Bonilla <rodrigo.bonilla@factorlibre.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions l10n_es_aeat_sii_oss/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2021 FactorLibre - Rodrigo Bonilla <rodrigo.bonilla@factorlibre.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Suministro Inmediato de Información en el IVA: OSS",
"version": "19.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/l10n-spain",
"author": "FactorLibre, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"autoinstall": True,
"development_status": "Production/Stable",
"maintainers": ["pedrobaeza"],
"depends": [
"l10n_es_aeat_sii_oca",
"account_fiscal_position_partner_type",
"l10n_eu_oss_oca",
],
"data": ["data/aeat_sii_mapping_registration_keys_data.xml"],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record
id="aeat_sii_oss_mapping_registration_keys_1"
model="aeat.sii.mapping.registration.keys"
>
<field name="code">17</field>
<field
name="name"
>Operación acogida a alguno de los regímenes previstos en el Capítulo XI del Título IX (OSS)</field>
<field name="type">sale</field>
</record>
</odoo>
22 changes: 22 additions & 0 deletions l10n_es_aeat_sii_oss/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_es_aeat_sii_oss
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-05-20 18:05+0000\n"
"Last-Translator: jabelchi <jabelchi@gmail.com>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: l10n_es_aeat_sii_oss
#: model:ir.model,name:l10n_es_aeat_sii_oss.model_account_move
msgid "Journal Entry"
msgstr "Apunt comptable"
22 changes: 22 additions & 0 deletions l10n_es_aeat_sii_oss/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_es_aeat_sii_oss
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-09 05:51+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: l10n_es_aeat_sii_oss
#: model:ir.model,name:l10n_es_aeat_sii_oss.model_account_move
msgid "Journal Entry"
msgstr "Entrada Diaria"
19 changes: 19 additions & 0 deletions l10n_es_aeat_sii_oss/i18n/l10n_es_aeat_sii_oss.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_es_aeat_sii_oss
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_es_aeat_sii_oss
#: model:ir.model,name:l10n_es_aeat_sii_oss.model_account_move
msgid "Journal Entry"
msgstr ""
3 changes: 3 additions & 0 deletions l10n_es_aeat_sii_oss/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import account_move
21 changes: 21 additions & 0 deletions l10n_es_aeat_sii_oss/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 FactorLibre - Rodrigo Bonilla <rodrigo.bonilla@factorlibre.com>
# Copyright 2021 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class AccountMove(models.Model):
_inherit = "account.move"

def _get_aeat_taxes_map(self, codes, date):
"""Inject OSS taxes when querying not subjected invoices."""
taxes = super()._get_aeat_taxes_map(codes, date)
if any([x in ["SFENS", "NotIncludedInTotal"] for x in codes]):
taxes |= self.env["account.tax"].search(
[
("oss_country_id", "!=", False),
("company_id", "=", self.company_id.id),
]
)
return taxes
3 changes: 3 additions & 0 deletions l10n_es_aeat_sii_oss/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions l10n_es_aeat_sii_oss/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Para configurar este módulo es necesario:

1. En la posiciones fiscales generadas por el modulo l10n_eu_oss
debemos activarlas para el envío del SII. Ademas debemos definir en
la opción "Clave de registro SII por defecto para ventas" la clave
17 y en la opción "Causa de no sujeción SII" definir Operaciones no
sujetas en el TAI por reglas de localización
3 changes: 3 additions & 0 deletions l10n_es_aeat_sii_oss/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Rodrigo Bonilla \<<rodrigo.bonilla@factorlibre.com>\>
- [Tecnativa](https://www.tecnativa.com):
- Pedro M. Baeza
3 changes: 3 additions & 0 deletions l10n_es_aeat_sii_oss/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Este módulo compatibiliza el envío al SII de las facturas de comercio
B2C a los países intracomunitarios según el marco de la normativa
europea One-Stop Shop (OSS).
3 changes: 3 additions & 0 deletions l10n_es_aeat_sii_oss/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Para instalar esté módulo necesita los módulos
account_fiscal_position_partner_type y l10n_eu_oss, que se encuentran en
<https://github.com/OCA/account-fiscal-rule.git>
Binary file added l10n_es_aeat_sii_oss/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 123 additions & 0 deletions l10n_es_aeat_sii_oss/static/description/icon_source.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading