-
-
Notifications
You must be signed in to change notification settings - Fork 800
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
[MIG][11.0] purchase_triple_discount Migrated. #611
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9fc9edb
[ADD] purchase_triple_discount: New module
chienandalu a8e4de3
[FIX] purchase_triple_discount: Correct view inheritance
pedrobaeza f3f29fe
OCA Transbot updated translations from Transifex
oca-transbot 2c9165c
OCA Transbot updated translations from Transifex
oca-transbot 9d215b2
OCA Transbot updated translations from Transifex
oca-transbot 17f3974
[UPD] Update purchase_triple_discount.pot
oca-travis eaddb56
[MIG][11.0] purchase_triple_discount Migrated.
23cb9aa
[IMP]Improved Module name
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,77 @@ | ||
.. 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 | ||
|
||
======================== | ||
Purchase Triple Discount | ||
======================== | ||
|
||
This module allows to have three successive discounts on every purchase order | ||
line. | ||
|
||
Usage | ||
===== | ||
|
||
Create a new purchase order 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/142/10.0 | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/purchase-workflow/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. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* Include second and third discount in purchase order report. | ||
|
||
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]> | ||
* Krunal Prajapati <[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 @@ | ||
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,20 @@ | ||
# Copyright 2017 Tecnativa - David Vidal | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
'name': 'Purchase Triple Discount', | ||
'version': '11.0.0.0.0', | ||
'category': 'Purchase Management', | ||
'author': 'Tecnativa, ' | ||
'Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/purchase-workflow', | ||
'license': 'AGPL-3', | ||
'summary': 'Manage triple discount on purchase order lines', | ||
'depends': [ | ||
'purchase_discount', | ||
'account_invoice_triple_discount', | ||
], | ||
'data': [ | ||
'views/purchase_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,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_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-11-24 07:53+0000\n" | ||
"PO-Revision-Date: 2017-11-24 07:53+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||
"Language: de\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: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount2 | ||
msgid "Disc. 2 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount3 | ||
msgid "Disc. 3 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 2 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 3 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Bestellposition" |
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,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_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-11-24 07:53+0000\n" | ||
"PO-Revision-Date: 2017-11-24 07:53+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" | ||
"Language: es\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: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount2 | ||
msgid "Disc. 2 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount3 | ||
msgid "Disc. 3 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 2 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 3 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Línea orden de compra" |
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: | ||
# * purchase_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-11-24 07:53+0000\n" | ||
"PO-Revision-Date: 2017-11-24 07:53+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" | ||
"es_MX/)\n" | ||
"Language: es_MX\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: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount2 | ||
msgid "Disc. 2 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount3 | ||
msgid "Disc. 3 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 2 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 3 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Línea de orden de compra" |
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: | ||
# * purchase_triple_discount | ||
# | ||
# Translators: | ||
# Henry Garcia <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-11-24 07:53+0000\n" | ||
"PO-Revision-Date: 2017-11-24 07:53+0000\n" | ||
"Last-Translator: Henry Garcia <[email protected]>, 2017\n" | ||
"Language-Team: Spanish (Peru) (https://www.transifex.com/oca/teams/23907/" | ||
"es_PE/)\n" | ||
"Language: es_PE\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: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount2 | ||
msgid "Disc. 2 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount3 | ||
msgid "Disc. 3 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 2 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 3 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "Factura" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Linea de orden de compra" |
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,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_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-11-24 07:53+0000\n" | ||
"PO-Revision-Date: 2017-11-24 07:53+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" | ||
"Language: fi\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: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount2 | ||
msgid "Disc. 2 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_order_line_discount3 | ||
msgid "Disc. 3 (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 2 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount 3 must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_account_invoice | ||
msgid "Invoice" | ||
msgstr "" | ||
|
||
#. module: purchase_triple_discount | ||
#: model:ir.model,name:purchase_triple_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Ostotilausrivi" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version:'11.0.1.0.0'