-
-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by adrienpeiffer
- Loading branch information
Showing
64 changed files
with
2,975 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
=============================== | ||
Account Invoice Triple Discount | ||
=============================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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%2Faccount--invoicing-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-invoicing/tree/15.0/account_invoice_triple_discount | ||
:alt: OCA/account-invoicing | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/account-invoicing-15-0/account-invoicing-15-0-account_invoice_triple_discount | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/95/15.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows to have three successive discounts on each invoice line. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
Create a new invoice and add discounts in any of the three discount fields | ||
given. They go in order of precedence so discount 2 will be calculated over | ||
discount 1 and discount 3 over the result of discount 2. For example, let's | ||
divide by two on every discount: | ||
|
||
Unit price: 600.00 -> | ||
|
||
- Disc. 1 = 50% -> Amount = 300.00 | ||
- Disc. 2 = 50% -> Amount = 150.00 | ||
- Disc. 3 = 50% -> Amount = 75.00 | ||
|
||
You can also use negative values to charge instead of discount: | ||
|
||
Unit price: 600.00 -> | ||
|
||
- Disc. 1 = 50% -> Amount = 300.00 | ||
- Disc. 2 = -5% -> Amount = 315.00 | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20account_invoice_triple_discount%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 | ||
~~~~~~~ | ||
|
||
* QubiQ | ||
* Tecnativa | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* David Vidal <[email protected]> | ||
* Pedro M. Baeza <[email protected]> | ||
* Nikul Chaudhary <[email protected]> | ||
|
||
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/account-invoicing <https://github.com/OCA/account-invoicing/tree/15.0/account_invoice_triple_discount>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2018 QubiQ (http://www.qubiq.es) | ||
# Copyright 2017 Tecnativa - David Vidal | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Account Invoice Triple Discount", | ||
"version": "16.0.1.0.0", | ||
"category": "Accounting & Finance", | ||
"author": "QubiQ, Tecnativa, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/account-invoicing", | ||
"license": "AGPL-3", | ||
"summary": "Manage triple discount on invoice lines", | ||
"depends": ["account"], | ||
"data": ["report/invoice.xml", "views/account_move.xml"], | ||
"installable": True, | ||
} |
54 changes: 54 additions & 0 deletions
54
account_invoice_triple_discount/i18n/account_invoice_triple_discount.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_invoice_triple_discount | ||
# | ||
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: account_invoice_triple_discount | ||
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.report_invoice_document | ||
msgid "<span>Disc.2 %</span>" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.report_invoice_document | ||
msgid "<span>Disc.3 %</span>" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view | ||
msgid "Disc.2%" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view | ||
msgid "Disc.3%" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_move_line__discount2 | ||
msgid "Discount 2 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_move_line__discount3 | ||
msgid "Discount 3 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_move | ||
msgid "Journal Entry" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_move_line | ||
msgid "Journal Item" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_invoice_triple_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-08-09 02:45+0000\n" | ||
"PO-Revision-Date: 2017-08-09 02:45+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount2 | ||
msgid "Discount 2 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount3 | ||
msgid "Discount 3 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "فاتورة" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "خط الفاتورة" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_invoice_triple_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-08-09 02:45+0000\n" | ||
"PO-Revision-Date: 2017-08-09 02:45+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" | ||
"Language: bg\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" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount2 | ||
msgid "Discount 2 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount3 | ||
msgid "Discount 3 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "Фактура" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_invoice_triple_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-08-09 02:45+0000\n" | ||
"PO-Revision-Date: 2017-08-09 02:45+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" | ||
"Language: bs\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount2 | ||
msgid "Discount 2 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount3 | ||
msgid "Discount 3 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "Faktura" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Stavka fakture" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_invoice_triple_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-08-09 02:45+0000\n" | ||
"PO-Revision-Date: 2022-08-09 10:06+0000\n" | ||
"Last-Translator: jabelchi <[email protected]>\n" | ||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\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: account_invoice_triple_discount | ||
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view | ||
msgid "Disc.2%" | ||
msgstr "Desc.2%" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view | ||
msgid "Disc.3%" | ||
msgstr "Desc.3%" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount2 | ||
msgid "Discount 2 (%)" | ||
msgstr "Descompte 2 (%)" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount3 | ||
msgid "Discount 3 (%)" | ||
msgstr "Descompte 3 (%)" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "Factura" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Línia factura" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_invoice_triple_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-08-09 02:45+0000\n" | ||
"PO-Revision-Date: 2017-08-09 02:45+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" | ||
"Language: cs\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount2 | ||
msgid "Discount 2 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_invoice_line__discount3 | ||
msgid "Discount 3 (%)" | ||
msgstr "" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "Faktura" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Řádek faktury" |
Oops, something went wrong.