Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] l10n_es_aeat_sii_oss: Migration to 16.0 #3112

Merged
merged 8 commits into from
Jun 28, 2023
Merged
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
99 changes: 99 additions & 0 deletions l10n_es_aeat_sii_oss/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
==================================================
Suministro Inmediato de Información en el IVA: OSS
==================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/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/15.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-15-0/l10n-spain-15-0-l10n_es_aeat_sii_oss
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/189/15.0
:alt: Try me on Runbot

|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:

#. 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-spain/issues/new?body=module:%20l10n_es_aeat_sii_oss%0Aversion:%2015.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 <[email protected]>
* `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/15.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 <[email protected]>
# 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 <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Suministro Inmediato de Información en el IVA: OSS",
"version": "16.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 <[email protected]>\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"
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 15.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 <[email protected]>
# 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_sii_taxes_map(self, codes):
"""Inject OSS taxes when querying not subjected invoices."""
taxes = super()._get_sii_taxes_map(codes)
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
5 changes: 5 additions & 0 deletions l10n_es_aeat_sii_oss/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Para configurar este módulo es necesario:

#. 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
4 changes: 4 additions & 0 deletions l10n_es_aeat_sii_oss/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Rodrigo Bonilla <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`__:

* Pedro M. Baeza
1 change: 1 addition & 0 deletions l10n_es_aeat_sii_oss/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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).
1 change: 1 addition & 0 deletions l10n_es_aeat_sii_oss/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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