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_it_vat_registries_split_payment #3394

Merged
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
82 changes: 82 additions & 0 deletions l10n_it_vat_registries_split_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
============================================
ITA - Registro IVA + Scissione dei pagamenti
============================================

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

.. |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--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_vat_registries_split_payment
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_vat_registries_split_payment
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/l10n-italy&target_branch=16.0
:alt: Try me on Runboat

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

**Italiano**

Modulo di congiunzione tra le funzionalità legate ai registri IVA e le
funzionalità inerenti alla scissione dei pagamenti.

**English**

Bridge module to make "VAT Registries" module work along with "Split Payment"
module.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/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-italy/issues/new?body=module:%20l10n_it_vat_registries_split_payment%0Aversion:%2016.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
~~~~~~~

* Agile Business Group

Contributors
~~~~~~~~~~~~

* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Matteo Bilotta <mbilotta@linkgroup.it>

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.

This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_vat_registries_split_payment>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_it_vat_registries_split_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import report
18 changes: 18 additions & 0 deletions l10n_it_vat_registries_split_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2018 Lorenzo Battistini
# Copyright (c) 2019 Matteo Bilotta
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "ITA - Registro IVA + Scissione dei pagamenti",
"summary": "Modulo di congiunzione tra registri" " IVA e scissione dei pagamenti",
"version": "16.0.1.0.0",
"development_status": "Beta",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/l10n-italy",
"author": "Agile Business Group, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"auto_install": True,
"depends": ["l10n_it_vat_registries", "l10n_it_split_payment"],
}
37 changes: 37 additions & 0 deletions l10n_it_vat_registries_split_payment/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_vat_registries_split_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-04-07 18:22+0000\n"
"Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\n"
"Language-Team: none\n"
"Language: it\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.14.1\n"

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_registries_split_payment.field_report_l10n_it_vat_registries_report_registro_iva__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_registries_split_payment.field_report_l10n_it_vat_registries_report_registro_iva__id
msgid "ID"
msgstr "ID"

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_registries_split_payment.field_report_l10n_it_vat_registries_report_registro_iva____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model,name:l10n_it_vat_registries_split_payment.model_report_l10n_it_vat_registries_report_registro_iva
msgid "Report VAT registry"
msgstr "Resoconto registro IVA"
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_vat_registries_split_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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_it_vat_registries_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_registries_split_payment.field_report_l10n_it_vat_registries_report_registro_iva__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_registries_split_payment.field_report_l10n_it_vat_registries_report_registro_iva__id
msgid "ID"
msgstr ""

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_registries_split_payment.field_report_l10n_it_vat_registries_report_registro_iva____last_update
msgid "Last Modified on"
msgstr ""

#. module: l10n_it_vat_registries_split_payment
#: model:ir.model,name:l10n_it_vat_registries_split_payment.model_report_l10n_it_vat_registries_report_registro_iva
msgid "Report VAT registry"
msgstr ""
2 changes: 2 additions & 0 deletions l10n_it_vat_registries_split_payment/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Matteo Bilotta <mbilotta@linkgroup.it>
9 changes: 9 additions & 0 deletions l10n_it_vat_registries_split_payment/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**Italiano**

Modulo di congiunzione tra le funzionalità legate ai registri IVA e le
funzionalità inerenti alla scissione dei pagamenti.

**English**

Bridge module to make "VAT Registries" module work along with "Split Payment"
module.
3 changes: 3 additions & 0 deletions l10n_it_vat_registries_split_payment/report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import report_vat_registry
21 changes: 21 additions & 0 deletions l10n_it_vat_registries_split_payment/report/report_vat_registry.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2019 Matteo Bilotta
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import api, models


class ReportVatRegistry(models.AbstractModel):
_inherit = "report.l10n_it_vat_registries.report_registro_iva"

@api.model
def _compute_totals_tax(self, tax, data):
res = super()._compute_totals_tax(tax, data)

if tax.is_split_payment:
# res = (tax_name, base, tax, deductible, undeductible)
#
# In case of SP tax, SP VAT must not appear as deductible.
#
return (res[0], res[1], res[2], 0.0, res[4])

return res
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading