forked from OCA/purchase-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#470 from Tecnativa/11.0-purchase_discount
[11.0][MIG] purchase discount: Migration to 11.0
- Loading branch information
Showing
26 changed files
with
3,720 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,63 @@ | ||
.. 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 | ||
|
||
=========================== | ||
Discount in purchase orders | ||
=========================== | ||
|
||
This module allows to define a discount per line in the purchase orders. This | ||
discount can be also negative, interpreting it as an increment. | ||
|
||
It also modifies the purchase order report to include the discount field in it. | ||
|
||
Usage | ||
===== | ||
|
||
.. 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/11.0 | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
With this module, the *price_unit* field of purchase order line stores the gross price instead of the net price, which is a change in the meaning of this field. So this module breaks all the other modules that use the *price_unit* field with it's native meaning. | ||
|
||
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 smashing it by providing a detailed and welcomed feedback. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* OpenERP S.A. | ||
* Ignacio Ibeas <[email protected]> | ||
* Pedro M. Baeza <[email protected]> | ||
|
||
Icon | ||
---- | ||
|
||
* Original Odoo purchase module icon | ||
* https://openclipart.org/detail/159937/clothing-label-with-rope | ||
|
||
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,4 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import models | ||
from . import report |
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,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2004-2009 Tiny SPRL (<http://tiny.be>). | ||
# © 2014-2017 Tecnativa - Pedro M. Baeza | ||
# © 2016 ACSONE SA/NV (<http://acsone.eu>) | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
{ | ||
"name": "Purchase order lines with discounts", | ||
"author": "Tiny, " | ||
"Acysos S.L., " | ||
"Tecnativa, " | ||
"ACSONE SA/NV," | ||
"Odoo Community Association (OCA)", | ||
"version": "11.0.1.0.0", | ||
"category": "Purchase Management", | ||
"depends": ["purchase"], | ||
"data": [ | ||
"views/purchase_discount_view.xml", | ||
"views/report_purchaseorder.xml", | ||
], | ||
"license": 'AGPL-3', | ||
'installable': True, | ||
'images': ['images/purchase_discount.png'], | ||
} |
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,45 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2016 | ||
# Niki Waibel <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-25 03:39+0000\n" | ||
"PO-Revision-Date: 2016-11-25 03:39+0000\n" | ||
"Last-Translator: Niki Waibel <[email protected]>, 2016\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: purchase_discount | ||
#: model:ir.ui.view,arch_db:purchase_discount.report_purchaseorder_document | ||
msgid "<strong>Disc. (%)</strong>" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model.fields,field_description:purchase_discount.field_purchase_order_line_discount | ||
msgid "Discount (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Rechnungszeile" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_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,44 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_discount | ||
# | ||
# Translators: | ||
# Kostas Goutoudis <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-25 03:39+0000\n" | ||
"PO-Revision-Date: 2016-11-25 03:39+0000\n" | ||
"Last-Translator: Kostas Goutoudis <[email protected]>, 2016\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: purchase_discount | ||
#: model:ir.ui.view,arch_db:purchase_discount.report_purchaseorder_document | ||
msgid "<strong>Disc. (%)</strong>" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model.fields,field_description:purchase_discount.field_purchase_order_line_discount | ||
msgid "Discount (%)" | ||
msgstr "Έκπτωση (%)" | ||
|
||
#. module: purchase_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_purchase_order_line | ||
msgid "Purchase Order 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,45 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2016 | ||
# Pedro M. Baeza <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-25 03:39+0000\n" | ||
"PO-Revision-Date: 2016-11-25 03:39+0000\n" | ||
"Last-Translator: Pedro M. Baeza <[email protected]>, 2016\n" | ||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: es\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.ui.view,arch_db:purchase_discount.report_purchaseorder_document | ||
msgid "<strong>Disc. (%)</strong>" | ||
msgstr "<strong>Desc. (%)</strong>" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model.fields,field_description:purchase_discount.field_purchase_order_line_discount | ||
msgid "Discount (%)" | ||
msgstr "(%) Descuento" | ||
|
||
#. module: purchase_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount must be lower than 100%." | ||
msgstr "El descuento debe ser menor al 100%." | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Línea de factura" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_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,44 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_discount | ||
# | ||
# Translators: | ||
# Juan González <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-12-03 04:07+0000\n" | ||
"PO-Revision-Date: 2016-12-03 04:07+0000\n" | ||
"Last-Translator: Juan González <[email protected]>, 2016\n" | ||
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: es_MX\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.ui.view,arch_db:purchase_discount.report_purchaseorder_document | ||
msgid "<strong>Disc. (%)</strong>" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model.fields,field_description:purchase_discount.field_purchase_order_line_discount | ||
msgid "Discount (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Línea de factura" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_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,44 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_discount | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-09-17 00:52+0000\n" | ||
"PO-Revision-Date: 2016-09-17 00:52+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2016\n" | ||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: fr\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.ui.view,arch_db:purchase_discount.report_purchaseorder_document | ||
msgid "<strong>Disc. (%)</strong>" | ||
msgstr "<strong>Remise (%)</strong>" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model.fields,field_description:purchase_discount.field_purchase_order_line_discount | ||
msgid "Discount (%)" | ||
msgstr "Remise (%)" | ||
|
||
#. module: purchase_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount must be lower than 100%." | ||
msgstr "La remise doit être inférieure à 100%." | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Ligne de facuration" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Ligne de commande d'achat" |
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,44 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * purchase_discount | ||
# | ||
# Translators: | ||
# leemannd <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-29 16:07+0000\n" | ||
"PO-Revision-Date: 2016-11-29 16:07+0000\n" | ||
"Last-Translator: leemannd <[email protected]>, 2016\n" | ||
"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: fr_CH\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.ui.view,arch_db:purchase_discount.report_purchaseorder_document | ||
msgid "<strong>Disc. (%)</strong>" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model.fields,field_description:purchase_discount.field_purchase_order_line_discount | ||
msgid "Discount (%)" | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: sql_constraint:purchase.order.line:0 | ||
msgid "Discount must be lower than 100%." | ||
msgstr "" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Ligne de facture" | ||
|
||
#. module: purchase_discount | ||
#: model:ir.model,name:purchase_discount.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "" |
Oops, something went wrong.