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

[11.0][MIG] account_invoice_triple_discount #370

Merged
merged 4 commits into from
Apr 10, 2018
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
71 changes: 71 additions & 0 deletions account_invoice_triple_discount/README.rst
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/11.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.
2 changes: 2 additions & 0 deletions account_invoice_triple_discount/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

from . import models
21 changes: 21 additions & 0 deletions account_invoice_triple_discount/__manifest__.py
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.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,
}
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/ar.po
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 "خط الفاتورة"
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/bg.po
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 ""
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/bs.po
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"
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/ca.po
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"
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/cs.po
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"
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/de.po
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"
39 changes: 39 additions & 0 deletions account_invoice_triple_discount/i18n/el_GR.po
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 ""
Loading