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

17.0][MIG] sale_pricelist_triple_discount: Migration to 17.0 #3401

Open
wants to merge 10 commits into
base: 17.0
Choose a base branch
from
Open
101 changes: 101 additions & 0 deletions sale_pricelist_triple_discount/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
==============================
Sale Pricelist Triple Discount
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:62dd305432c77c119a1d7e92442b020fb62c3e7e62fbc1c34c99605f141becff
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_pricelist_triple_discount
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_pricelist_triple_discount
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=17.0
:alt: Try me on Runboat

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

This module allows the user to specify all three discounts in the
pricelist. The specified discounts will be then present in the quotation
and sale order lines.

**Table of contents**

.. contents::
:local:

Configuration
=============

Add discounts percentage value to pricelist rules. The additional
discounts are only visible for Discount and Formula Computation
pricelist rules.

Usage
=====

1. Configure a pricelist with Discount Policy = Show public price &
discount to the customer
2. Configure a pricelist rule with Discount or Formula Computation and
the three discounts
3. Create a sale order and select the configured pricelist
4. Add a product in the sale order, matching a rule of the configured
pricelist
5. Check that the three discounts defined on the pricelist item will
populate the three discounts in the sale order line

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_pricelist_triple_discount%0Aversion:%2017.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
-------

* Agile Business Group

Contributors
------------

- Simone Rubino <[email protected]>
- `Aion Tech <https://aiontech.company/>`__:

- Simone Rubino <[email protected]>

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/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/sale_pricelist_triple_discount>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_pricelist_triple_discount/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import model
21 changes: 21 additions & 0 deletions sale_pricelist_triple_discount/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2015 credativ ltd (<http://www.credativ.co.uk>)
# Copyright (c) 2020 Simone Rubino - Agile Business Group
# Copyright 2023 Simone Rubino - Aion Tech
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Pricelist Triple Discount",
"version": "17.0.1.0.0",
"category": "Sale",
"author": "Agile Business Group, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow"
"17.0/sale_pricelist_triple_discount",
"license": "AGPL-3",
"depends": [
"sale_triple_discount",
],
"data": [
"view/product_pricelist_item_views.xml",
],
"auto_install": False,
"installable": True,
}
73 changes: 73 additions & 0 deletions sale_pricelist_triple_discount/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_pricelist_triple_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-13 16:51+0000\n"
"PO-Revision-Date: 2024-11-08 11:06+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: \n"
"Language: it\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"
"X-Generator: Weblate 5.6.2\n"

#. module: sale_pricelist_triple_discount
#: model_terms:ir.ui.view,arch_db:sale_pricelist_triple_discount.product_pricelist_view_form_discount
msgid "<span>%</span>"
msgstr "<span>%</span>"

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_sale_order_line__discount2
msgid "Disc. 2 (%)"
msgstr "Sc. 2 (%)"

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_sale_order_line__discount3
msgid "Disc. 3 (%)"
msgstr "Sc. 3 (%)"

#. module: sale_pricelist_triple_discount
#: model_terms:ir.ui.view,arch_db:sale_pricelist_triple_discount.product_pricelist_view_form_discount
msgid "Discount 2"
msgstr "Sconto 2"

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_product_pricelist_item__discount2
msgid "Discount 2 (%)"
msgstr "Sconto 2 (%)"

#. module: sale_pricelist_triple_discount
#: model_terms:ir.ui.view,arch_db:sale_pricelist_triple_discount.product_pricelist_view_form_discount
msgid "Discount 3"
msgstr "Sconto 3"

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_product_pricelist_item__discount3
msgid "Discount 3 (%)"
msgstr "Sconto 3 (%)"

#. module: sale_pricelist_triple_discount
#: model:ir.model,name:sale_pricelist_triple_discount.model_product_pricelist_item
msgid "Pricelist Rule"
msgstr "Regola listino prezzi"

#. module: sale_pricelist_triple_discount
#: model:ir.model,name:sale_pricelist_triple_discount.model_sale_order_line
msgid "Sales Order Line"
msgstr "Riga ordine di vendita"

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,help:sale_pricelist_triple_discount.field_product_pricelist_item__discount2
msgid "Second discount applied on a sale order line."
msgstr "Secondo sconto applicato alla riga dell'ordine di vendita."

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,help:sale_pricelist_triple_discount.field_product_pricelist_item__discount3
msgid "Third discount applied on a sale order line."
msgstr "Terzo sconto applicato alla riga dell'ordine di vendita."
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_pricelist_triple_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_pricelist_triple_discount
#: model_terms:ir.ui.view,arch_db:sale_pricelist_triple_discount.product_pricelist_view_form_discount
msgid "<span>%</span>"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_sale_order_line__discount2
msgid "Disc. 2 (%)"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_sale_order_line__discount3
msgid "Disc. 3 (%)"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model_terms:ir.ui.view,arch_db:sale_pricelist_triple_discount.product_pricelist_view_form_discount
msgid "Discount 2"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_product_pricelist_item__discount2
msgid "Discount 2 (%)"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model_terms:ir.ui.view,arch_db:sale_pricelist_triple_discount.product_pricelist_view_form_discount
msgid "Discount 3"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,field_description:sale_pricelist_triple_discount.field_product_pricelist_item__discount3
msgid "Discount 3 (%)"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model,name:sale_pricelist_triple_discount.model_product_pricelist_item
msgid "Pricelist Rule"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model,name:sale_pricelist_triple_discount.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,help:sale_pricelist_triple_discount.field_product_pricelist_item__discount2
msgid "Second discount applied on a sale order line."
msgstr ""

#. module: sale_pricelist_triple_discount
#: model:ir.model.fields,help:sale_pricelist_triple_discount.field_product_pricelist_item__discount3
msgid "Third discount applied on a sale order line."
msgstr ""
4 changes: 4 additions & 0 deletions sale_pricelist_triple_discount/model/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import pricelist
from . import sale
Loading
Loading