-
-
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.
[11.0][MIG] account_invoice_triple_discount
- Loading branch information
1 parent
cdbf593
commit 5931a16
Showing
55 changed files
with
2,128 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,71 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
=============================== | ||
Account Invoice Triple Discount | ||
=============================== | ||
|
||
This module allows to have three successive discounts on each invoice line. | ||
|
||
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 | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/95/10.0 | ||
|
||
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 smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* David Vidal <[email protected]> | ||
* Pedro M. Baeza <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
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,2 @@ | ||
|
||
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,21 @@ | ||
# 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': '11.0.1.0', | ||
'category': 'Accounting & Finance', | ||
'author': 'QubiQ,' | ||
'Tecnativa,' | ||
'Odoo Community Association (OCA)', | ||
'website': 'https://odoo-community.org', | ||
'license': 'AGPL-3', | ||
'summary': 'Manage triple discount on invoice lines', | ||
'depends': [ | ||
'account', | ||
], | ||
'data': [ | ||
'views/account_invoice_view.xml', | ||
], | ||
'installable': True, | ||
} |
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: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: ar\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" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: bg\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,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: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: bs\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,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: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: ca\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 "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" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: cs\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" |
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: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: de\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 "Rechnung" | ||
|
||
#. module: account_invoice_triple_discount | ||
#: model:ir.model,name:account_invoice_triple_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Rechnungsposition" |
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: Greek (Greece) (https://www.transifex.com/oca/teams/23907/el_GR/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: el_GR\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 "" |
Oops, something went wrong.