Skip to content

Commit

Permalink
[14.0][ADD] l10n_it_riba_sale_commission
Browse files Browse the repository at this point in the history
  • Loading branch information
odooNextev authored and matteonext committed Apr 21, 2023
1 parent 56b4171 commit 426e8f5
Show file tree
Hide file tree
Showing 17 changed files with 912 additions and 0 deletions.
101 changes: 101 additions & 0 deletions l10n_it_riba_sale_commission/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
==============================================
Italian Localization - Sale commission - Ri.Ba
==============================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/14.0/l10n_it_riba_sale_commission
: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-14-0/l10n-italy-14-0-l10n_it_riba_sale_commission
: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=14.0
:alt: Try me on Runboat

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

**Italiano**

Il modulo permette di integrare il pagamento riba con le commissioni agenti.

Una fattura con termini di pagamento Riba ed emissione con tipologia
"Salvo buon fine" verrà presa in considerazione nella generazione delle
provvigioni agente solamente trascorsi il numero di giorni impostati nel campo
"Giorni di sicurezza" nella configurazione ri.ba.

E' possibile inserire aggiungere "Senza commissioni" ad una fattura, in modo
che non vengano generate commissioni agente.

Richiede almeno la versione 14.0.1.5.2 del modulo ``sale_commission``
(https://github.com/OCA/commission/tree/14.0/sale_commission).

**English**

The module allows you to integrate the riba payment with agent commissions.

An invoice with Riba payment terms and issue with typology
"Salvo buon fine" will be taken into consideration in the generation of the
agent commissions only after the number of days set in the field "Safety Days"
in ri.ba configuration.

It is possible to add "Without commissions" to an invoice, in this way
that no agent commissions are generated.

It needs at least 14.0.1.5.2 version of ``sale_commission`` module
(https://github.com/OCA/commission/tree/14.0/sale_commission).

**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_riba_sale_commission %0Aversion:%2014.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
~~~~~~~

* Nextev

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

* Nextev Srl <odoo@nextev.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/14.0/l10n_it_riba_sale_commission>`_ 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_it_riba_sale_commission/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
21 changes: 21 additions & 0 deletions l10n_it_riba_sale_commission/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "ITA - Integrazione tra RiBa e provvigioni su vendite",
"summary": "Modulo ponte tra provvigioni agenti e RiBa",
"version": "14.0.1.0.0",
"development_status": "Alpha",
"category": "Localization/Italy",
"website": "https://github.com/OCA/l10n-italy",
"author": "Nextev Srl, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"sale_commission",
"l10n_it_ricevute_bancarie",
],
"data": [
"views/invoice_no_commission.xml",
"views/configuration_riba_view.xml",
],
}
48 changes: 48 additions & 0 deletions l10n_it_riba_sale_commission/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_riba_sale_commission
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-07 10:09+0000\n"
"PO-Revision-Date: 2023-03-07 10:09+0000\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_riba_sale_commission
#: model:ir.model,name:l10n_it_riba_sale_commission.model_riba_configuration
msgid "Configuration parameters for Cash Orders"
msgstr "Parametri di configurazione delle ricevute bancarie"

#. module: l10n_it_riba_sale_commission
#: code:addons/l10n_it_riba_sale_commission/wizard/wizard_riba_commissions_settle.py:99
#, python-format
msgid "Created Settlements"
msgstr "Liquidazioni create"

#. module: l10n_it_riba_sale_commission
#: model:ir.model.fields,field_description:l10n_it_riba_sale_commission.field_account_invoice__no_commission
msgid "Without commissions"
msgstr "Senza provvigioni"

#. module: l10n_it_riba_sale_commission
#: model:ir.model,name:l10n_it_riba_sale_commission.model_account_invoice
msgid "Invoice"
msgstr "Fattura"

#. module: l10n_it_riba_sale_commission
#: model:ir.model.fields,field_description:l10n_it_riba_sale_commission.field_riba_configuration__safety_days
msgid "Safety days"
msgstr "Giorni di sicurezza"

#. module: l10n_it_riba_sale_commission
#: model:ir.model,name:l10n_it_riba_sale_commission.model_sale_commission_make_settle
msgid "Wizard for settling commissions in invoices"
msgstr "Wizard per creare la liquidazione delle commissioni nelle fatture"

3 changes: 3 additions & 0 deletions l10n_it_riba_sale_commission/models/__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 account_move
from . import riba_config
9 changes: 9 additions & 0 deletions l10n_it_riba_sale_commission/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


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

no_commission = fields.Boolean(string="Without commissions")
8 changes: 8 additions & 0 deletions l10n_it_riba_sale_commission/models/riba_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from odoo import fields, models


class RibaConfiguration(models.Model):

_inherit = "riba.configuration"

safety_days = fields.Integer("Safety days", default=5)
1 change: 1 addition & 0 deletions l10n_it_riba_sale_commission/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Nextev Srl <odoo@nextev.it>
23 changes: 23 additions & 0 deletions l10n_it_riba_sale_commission/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Italiano**

Il modulo permette di integrare il pagamento RiBa con le provvigioni agenti.

Nella generazione delle provvigioni agente, una fattura con termini di pagamento
RiBa ed emissione con tipologia "Salvo buon fine" verrà presa in considerazione
solamente trascorsi il numero di giorni impostati nel campo "Giorni di sicurezza"
nella configurazione RiBa.

È possibile impostare la spunta su "Senza provvigioni" nelle fatture, in modo
che non vengano generate provvigioni agente.

**English**

The module allows you to integrate the RiBa payment with agent commissions.

When generating agent commissions, an invoice with RiBa
payment terms and "Subject To Collection" type issue will be taken
into consideration only after the number of days set in the "Safety Days" field
in RiBa configuration.

It is possible to set "Without commissions" flag in invoices, in this way
no agent commissions are generated.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 426e8f5

Please sign in to comment.