Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b92c55b
[ADD] purchase_triple_discount: New module
chienandalu Jul 18, 2017
85c5f24
[FIX] purchase_triple_discount: Correct view inheritance
pedrobaeza Oct 11, 2017
fb6ab1b
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
9ca16a9
[MIG] purchase_triple_discount: Migration to 11.0
chienandalu Aug 5, 2019
d95cd91
[MIG] purchase_triple_discount
legalsylvain Aug 8, 2019
db03f90
[IMP] inheritance between purchase_discount and purchase_triple_disco…
legalsylvain Aug 9, 2019
0967f7b
[IMP] purchase*_discount: Several improvements:
pedrobaeza Aug 9, 2019
bbd7521
[UPD] Update purchase_triple_discount.pot
oca-travis Aug 13, 2019
961f6f8
[UPD] README.rst
OCA-git-bot Aug 13, 2019
39cc75e
purchase_triple_discount 12.0.1.0.1
OCA-git-bot Aug 13, 2019
da6f0f4
Update translation files
oca-transbot Aug 13, 2019
1901bf8
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
5716a4a
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
393e245
Update translation files
oca-transbot Sep 6, 2019
e598b8e
[FIX] purchase_triple_discount: Missing return raises error
HviorForgeFlow Oct 18, 2019
b6108be
purchase_triple_discount 12.0.1.0.2
OCA-git-bot Oct 22, 2019
08aaa94
Translated using Weblate (Italian)
francesco-ooops Feb 26, 2020
dd694a1
[FIX] purchase_triple_discount: bad display of discounts 2 and 3 in s…
legalsylvain Jun 15, 2020
74a2534
purchase_triple_discount 12.0.1.1.0
OCA-git-bot Jun 17, 2020
1870f47
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 12, 2020
0b621dd
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 25, 2020
c2c98a9
Update translation files
oca-transbot Nov 22, 2020
05ca12b
Translated using Weblate (Slovenian)
sysadminmatmoz Feb 24, 2021
734bd82
[IMP] purchase_triple_discount: black, isort, prettier
ChrisOForgeFlow Jan 3, 2022
e04746b
[14.0][MIG] purchase_triple_discount
ChrisOForgeFlow Jan 3, 2022
cc81135
[UPD] Update purchase_triple_discount.pot
oca-travis Feb 8, 2022
4bd1ae8
[UPD] README.rst
OCA-git-bot Feb 8, 2022
eb15f71
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
9649f11
[FIX] purchase_triple_discount: decimal_precision is obsolete
MiquelRForgeFlow May 3, 2022
bfe7cea
purchase_triple_discount 14.0.1.0.1
OCA-git-bot May 3, 2022
a72c340
[IMP] purchase_triple_discount: Display discount2 and discount3 field…
ao-landoo Oct 4, 2022
63d1ca9
[IMP] purchase_triple_discount: black, isort, prettier
ramiadavid May 22, 2022
c6ef161
[MIG] purchase_triple_discount: Migration to 15.0
ramiadavid May 22, 2022
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
110 changes: 110 additions & 0 deletions purchase_triple_discount/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
==============================
Purchase Order 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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/14.0/purchase_triple_discount
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_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/142/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to have three successive discounts on every purchase order
line.

**Table of contents**

.. contents::
:local:

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

* When the purchase order is validated, the discounts will be added to the
corresponding vendor pricelist.
* Vendor pricelists can be edited as well with their corresponding new second
and third discounts.
* A default second or third discount can be set in every vendor
*Sale & Purchases* tab.

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 <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_triple_discount%0Aversion:%2014.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
~~~~~~~

* Tecnativa
* GRAP

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

* David Vidal
* Pedro M. Baeza

* Sylvain LE GAL (https://twitter.com/legalsylvain)
* `ForgeFlow S.L. <https://www.forgeflow.com>`_:
* Christopher Ormaza <chris.ormaza@forgeflow.com>

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/14.0/purchase_triple_discount>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions purchase_triple_discount/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import report
22 changes: 22 additions & 0 deletions purchase_triple_discount/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2017 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Purchase Order Triple Discount",
"version": "15.0.1.0.0",
"category": "Purchase Management",
"author": "Tecnativa," "GRAP," "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_order_report.xml",
"views/product_supplierinfo_view.xml",
"views/purchase_view.xml",
"views/res_partner_view.xml",
],
"installable": True,
}
104 changes: 104 additions & 0 deletions purchase_triple_discount/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_triple_discount
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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,name:purchase_triple_discount.model_res_partner
msgid "Contact"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_partner__default_supplierinfo_discount2
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_users__default_supplierinfo_discount2
msgid "Default Supplier Discount 2 (%)"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_partner__default_supplierinfo_discount3
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_users__default_supplierinfo_discount3
msgid "Default Supplier Discount 3 (%)"
msgstr ""

#. 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
#: model:ir.model.fields,field_description:purchase_triple_discount.field_product_supplierinfo__discount2
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_report__discount2
msgid "Discount 2 (%)"
msgstr ""

#. module: purchase_triple_discount
#: sql_constraint:purchase.order.line:0
msgid "Discount 2 must be lower than 100%."
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,field_description:purchase_triple_discount.field_product_supplierinfo__discount3
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_report__discount3
msgid "Discount 3 (%)"
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"

#. module: purchase_triple_discount
#: model:ir.model,name:purchase_triple_discount.model_purchase_report
#, fuzzy
msgid "Purchase Report"
msgstr "Bestellposition"

#. module: purchase_triple_discount
#: model:ir.model,name:purchase_triple_discount.model_stock_rule
msgid "Stock Rule"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model,name:purchase_triple_discount.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,help:purchase_triple_discount.field_res_partner__default_supplierinfo_discount2
#: model:ir.model.fields,help:purchase_triple_discount.field_res_partner__default_supplierinfo_discount3
#: model:ir.model.fields,help:purchase_triple_discount.field_res_users__default_supplierinfo_discount2
#: model:ir.model.fields,help:purchase_triple_discount.field_res_users__default_supplierinfo_discount3
msgid ""
"This value will be used as the default one, for each new supplierinfo line "
"depending on that supplier."
msgstr ""
104 changes: 104 additions & 0 deletions purchase_triple_discount/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_triple_discount
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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,name:purchase_triple_discount.model_res_partner
msgid "Contact"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_partner__default_supplierinfo_discount2
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_users__default_supplierinfo_discount2
msgid "Default Supplier Discount 2 (%)"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_partner__default_supplierinfo_discount3
#: model:ir.model.fields,field_description:purchase_triple_discount.field_res_users__default_supplierinfo_discount3
msgid "Default Supplier Discount 3 (%)"
msgstr ""

#. 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
#: model:ir.model.fields,field_description:purchase_triple_discount.field_product_supplierinfo__discount2
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_report__discount2
msgid "Discount 2 (%)"
msgstr ""

#. module: purchase_triple_discount
#: sql_constraint:purchase.order.line:0
msgid "Discount 2 must be lower than 100%."
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,field_description:purchase_triple_discount.field_product_supplierinfo__discount3
#: model:ir.model.fields,field_description:purchase_triple_discount.field_purchase_report__discount3
msgid "Discount 3 (%)"
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"

#. module: purchase_triple_discount
#: model:ir.model,name:purchase_triple_discount.model_purchase_report
#, fuzzy
msgid "Purchase Report"
msgstr "Línea orden de compra"

#. module: purchase_triple_discount
#: model:ir.model,name:purchase_triple_discount.model_stock_rule
msgid "Stock Rule"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model,name:purchase_triple_discount.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: purchase_triple_discount
#: model:ir.model.fields,help:purchase_triple_discount.field_res_partner__default_supplierinfo_discount2
#: model:ir.model.fields,help:purchase_triple_discount.field_res_partner__default_supplierinfo_discount3
#: model:ir.model.fields,help:purchase_triple_discount.field_res_users__default_supplierinfo_discount2
#: model:ir.model.fields,help:purchase_triple_discount.field_res_users__default_supplierinfo_discount3
msgid ""
"This value will be used as the default one, for each new supplierinfo line "
"depending on that supplier."
msgstr ""
Loading