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_statement_split_payment #3395

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
946bfef
[ADD] l10n_it_vat_statement_split_payment: Added to 11.0
Jun 11, 2019
90fe000
[MIG] l10n_it_vat_statement_split_payment: Migration to 12.0
Nov 20, 2019
9c9b05c
Add test for l10n_it_vat_statement_split_payment
Nov 20, 2019
2281d01
[UPD] Update l10n_it_vat_statement_split_payment.pot
oca-travis Nov 21, 2019
bcd0ef8
[UPD] README.rst
OCA-git-bot Nov 21, 2019
b9e5b7d
Added translation using Weblate (Italian)
primes2h Dec 23, 2019
e8b4367
Translated using Weblate (Italian)
primes2h Dec 23, 2019
782b163
merge PR 1264 1717 1728 1737 1739
May 13, 2020
6ae4eb9
[FIX][l10n_it_vat_statement_split_payment]
alessandrocamilli Nov 27, 2020
a3186c9
l10n_it_vat_statement_split_payment 12.0.1.0.2
OCA-git-bot Dec 14, 2020
5413427
[IMP] l10n_it_vat_statement_split_payment: black, isort, prettier
eLBati Apr 27, 2021
e2809d5
[MIG] l10n_it_vat_statement_split_payment: Migration to 14.0
eLBati Apr 27, 2021
c260be6
[UPD] Update l10n_it_vat_statement_split_payment.pot
oca-travis May 21, 2021
c190cc4
[UPD] README.rst
OCA-git-bot May 21, 2021
5fa4255
[FIX] l10n_it_vat_statement_split_payment: Add default repartition li…
SimoRubi Sep 22, 2021
c2e71e9
l10n_it_vat_statement_split_payment 14.0.1.0.1
OCA-git-bot Oct 22, 2021
01e43de
[FIX] l10n_it_vat_statement_split_payment: fix test tags
TheMule71 Apr 15, 2022
58ece1d
l10n_it_vat_statement_split_payment 14.0.1.0.2
OCA-git-bot Apr 15, 2022
3e8b03d
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
0dbef9f
Translated using Weblate (Italian)
mymage Apr 19, 2023
247876d
Translated using Weblate (Italian)
mymage Apr 21, 2023
8bb8f06
Translated using Weblate (Italian)
mymage Apr 26, 2023
5c1fc4f
[IMP] l10n_it_vat_statement_split_payment: pre-commit stuff
Borruso Jun 19, 2023
88e08e9
[MIG] l10n_it_vat_statement_split_payment: Migration to 16.0
Borruso Jun 19, 2023
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
128 changes: 128 additions & 0 deletions l10n_it_vat_statement_split_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
================================================
ITA - Liquidazione 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_statement_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_statement_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 per considerare l'IVA della scissione dei pagamenti in fase di
liquidazione dell'IVA.
L'IVA a debito derivante dalle fatture di vendita soggette alla scissione dei
pagamenti verrà stornata nella liquidazione dell'IVA con un movimento di
storno che verrà messo nella sezione "Altri debiti e crediti".

**English**

This module considers the VAT of the split payment during the VAT statement.
The payable VAT derived from the sales invoices subject to the split payments
will be reversed in the VAT statement with a write-off movement that
will be placed in the "Other debts and credits" section.

**Table of contents**

.. contents::
:local:

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

**Italiano**

Nella configurazione della contabilità è possibile personalizzare la dicitura
che verrà riportata nella liquidazione dell'IVA relativamente allo storno.

**English**

Through the accounting configuration, it is possible to configure the wording
that will be reported inside the VAT statement related to the write-off.

Usage
=====

**Italiano**

Il modulo si integra nel calcolo della liquidazione dell'IVA.
Tutte le funzionalità del modulo verranno attivate insieme al calcolo della
liquidazione dell'IVA.

**English**

This module integrates himself inside the VAT statement.
All features will be activated automatically during the VAT statement process.

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_statement_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
~~~~~~~

* Openforce Srls Unipersonale

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

* Alessandro Camilli <alessandrocamilli@openforce.it>
* Silvio Gregorini <silviogregorini@openforce.it>
* Matteo Bilotta
* Baggio Lara

* `TAKOBI <https://takobi.online>`_:

* Lorenzo Battistini

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* `Openforce <https://openforce.it/>`_
* `Odoo Italia Network <https://odoo-italia.net/>`_

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_statement_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_statement_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 models
22 changes: 22 additions & 0 deletions l10n_it_vat_statement_split_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2018 Silvio Gregorini (silviogregorini@openforce.it)
# Copyright (c) 2018 Openforce Srls Unipersonale (www.openforce.it)
# Copyright (c) 2019 Matteo Bilotta
# Copyright 2021 Lorenzo Battistini @ TAKOBI
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "ITA - Liquidazione IVA + Scissione dei pagamenti",
"summary": "Migliora la liquidazione dell'IVA tenendo in"
" considerazione la scissione dei pagamenti",
"version": "16.0.1.0.0",
"development_status": "Beta",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/l10n-italy",
"author": "Openforce Srls Unipersonale, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"auto_install": True,
"depends": ["account_vat_period_end_statement", "l10n_it_split_payment"],
"data": ["views/account_config_view.xml"],
}
65 changes: 65 additions & 0 deletions l10n_it_vat_statement_split_payment/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_vat_statement_split_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-04-26 16:33+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_res_company
msgid "Companies"
msgstr "Aziende"

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni di configurazione"

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_company__sp_description
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_config_settings__sp_description
msgid "Description for period end statements"
msgstr "Descrizione dichiarazone di fine periodo"

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_statement_generic_account_line__is_split_payment
msgid "Is Split Payment"
msgstr "È una scissione dei pagamenti"

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_account_move_line
msgid "Journal Item"
msgstr "Movimento contabile"

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_statement_generic_account_line
msgid "VAT Statement generic account line"
msgstr "Riga contabile generica per dichiarazione IVA"

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_account_vat_period_end_statement
msgid "VAT period end statement"
msgstr "Dichiarazione IVA di fine periodo"

#. module: l10n_it_vat_statement_split_payment
#: code:addons/l10n_it_vat_statement_split_payment/models/statement.py:26
#, python-format
msgid "Write-off tax amount on tax"
msgstr "Storno valore imposta sull'imposta"

#. module: l10n_it_vat_statement_split_payment
#: code:addons/l10n_it_vat_statement_split_payment/models/statement.py:48
#, python-format
msgid "from {} to {}"
msgstr "dal {} al {}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_vat_statement_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_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_res_company
msgid "Companies"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_company__sp_description
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_config_settings__sp_description
msgid "Description for period end statements"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_account_move_line__display_name
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_account_vat_period_end_statement__display_name
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_company__display_name
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_config_settings__display_name
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_statement_generic_account_line__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_account_move_line__id
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_account_vat_period_end_statement__id
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_company__id
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_config_settings__id
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_statement_generic_account_line__id
msgid "ID"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_statement_generic_account_line__is_split_payment
msgid "Is Split Payment"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_account_move_line____last_update
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_account_vat_period_end_statement____last_update
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_company____last_update
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_res_config_settings____last_update
#: model:ir.model.fields,field_description:l10n_it_vat_statement_split_payment.field_statement_generic_account_line____last_update
msgid "Last Modified on"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_statement_generic_account_line
msgid "VAT Statement generic account line"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: model:ir.model,name:l10n_it_vat_statement_split_payment.model_account_vat_period_end_statement
msgid "VAT period end statement"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: code:addons/l10n_it_vat_statement_split_payment/models/statement.py:0
#, python-format
msgid "Write-off tax amount on tax"
msgstr ""

#. module: l10n_it_vat_statement_split_payment
#: code:addons/l10n_it_vat_statement_split_payment/models/statement.py:0
#, python-format
msgid "from {} to {}"
msgstr ""
6 changes: 6 additions & 0 deletions l10n_it_vat_statement_split_payment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import account
from . import account_config
from . import res_company
from . import statement
22 changes: 22 additions & 0 deletions l10n_it_vat_statement_split_payment/models/account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2018 Silvio Gregorini (silviogregorini@openforce.it)
# Copyright (c) 2018 Openforce Srls Unipersonale (www.openforce.it)
# Copyright (c) 2019 Matteo Bilotta
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


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

def group_by_account_and_tax(self):
grouped_lines = {}

for line in self:
group_key = (line.account_id, line.tax_line_id)
if group_key not in grouped_lines:
grouped_lines.update({group_key: []})

grouped_lines[group_key].append(line)

return grouped_lines
16 changes: 16 additions & 0 deletions l10n_it_vat_statement_split_payment/models/account_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2018 Silvio Gregorini (silviogregorini@openforce.it)
# Copyright (c) 2018 Openforce Srls Unipersonale (www.openforce.it)
# Copyright (c) 2019 Matteo Bilotta
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

sp_description = fields.Char(
related="company_id.sp_description",
string="Description for period end statements",
readonly=False,
)
12 changes: 12 additions & 0 deletions l10n_it_vat_statement_split_payment/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2018 Silvio Gregorini (silviogregorini@openforce.it)
# Copyright (c) 2018 Openforce Srls Unipersonale (www.openforce.it)
# Copyright (c) 2019 Matteo Bilotta
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

sp_description = fields.Char(string="Description for period end statements")
Loading
Loading