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

[18.0][MIG] sale_fixed_discount: Migration to 18.0. #3413

Open
wants to merge 46 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e1e74a2
[9.0][ADD] sale_fixed_discount
LoisRForgeFlow Sep 1, 2017
144b27b
[10.0][MIG] sale_fixed_discount
LoisRForgeFlow Jan 12, 2018
7111ab4
[11.0][mig] sale_fixed_discount
JordiBForgeFlow Oct 8, 2018
e366cf7
[MIG] sale_fixed_discount: Migration to 12.0
MiquelRForgeFlow Sep 2, 2019
6a77837
[IMP] Simplify code
MiquelRForgeFlow Sep 3, 2019
c875f5a
[IMP] sale_fixed_discount: black, isort, prettier
HviorForgeFlow May 8, 2020
f630705
[MIG] sale_fixed_discount: Migration to 13.0
HviorForgeFlow May 8, 2020
e4c4b02
Not update lines when SO is locked
HviorForgeFlow Jun 25, 2020
ac21daf
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
c89fc47
[FIX] sale_fixed_discount: using `product.group_discount_per_so_line`
dennybiasiolli Oct 13, 2020
4255a3b
[FIX] sale_fixed_discount: remove obsolete colspan calculation
skeller1 Nov 21, 2020
5c0e6e0
[13.0][sale_fixed_discount] fix sale portal view
JordiBForgeFlow Feb 9, 2021
4b96460
[IMP] sale_fixed_discount: black, isort, prettier
damdam-s May 11, 2023
39c6043
[MIG] sale_fixed_discount: Migration to 14.0
damdam-s May 11, 2023
428193a
[MIG] sale_fixed_discount: Migration to 15.0
Jun 19, 2023
518f3c9
[UPD] Update sale_fixed_discount.pot
Jul 20, 2023
b5c6744
[UPD] README.rst
OCA-git-bot Jul 20, 2023
af1b4ad
[MIG] sale_fixed_discount: Migration to 16.0
PieterPaulussen Jul 24, 2023
8b158b9
[UPD] Update sale_fixed_discount.pot
Oct 1, 2023
e6118d2
Update translation files
weblate Oct 9, 2023
2efbbe4
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Oct 9, 2023
121f896
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 9, 2023
f3edb3a
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 12, 2023
2ed95ce
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
4009469
Added translation using Weblate (Italian)
mymage Dec 1, 2023
a5b2da0
Translated using Weblate (Italian)
mymage Dec 4, 2023
eab7f7e
[17.0][MIG]sale_fixed_discount: Migrated module to v17.0
fd-oerp Feb 14, 2024
273361a
[UPD] Update sale_fixed_discount.pot
Mar 8, 2024
7732500
[BOT] post-merge updates
OCA-git-bot Mar 8, 2024
e596cac
Update translation files
weblate Mar 9, 2024
f4cdfcf
Translated using Weblate (Italian)
mymage Mar 12, 2024
b46b029
Translated using Weblate (Spanish)
Ivorra78 Apr 23, 2024
b4d8ac8
[FIX] sale_fixed_discount: Division by zero
ioans73 Mar 15, 2024
2a92c42
[BOT] post-merge updates
OCA-git-bot May 18, 2024
1250f9a
[IMP] sale_fixed_discount: remove replace from views
CRogos Jun 3, 2024
b1288c8
[UPD] Update sale_fixed_discount.pot
Jun 10, 2024
54c194f
[BOT] post-merge updates
OCA-git-bot Jun 10, 2024
554e663
Update translation files
weblate Jun 10, 2024
932e74a
Translated using Weblate (Italian)
mymage Jun 12, 2024
7ad2567
[IMP] sale_fixed_discount: improve xml regex replacement
CRogos Jun 19, 2024
f532a9a
[FIX] sale_fixed_discount: convert _onchange_discount_fixed() to comp…
astirpe May 25, 2024
d63feea
[BOT] post-merge updates
OCA-git-bot Jun 24, 2024
0ef5fa3
[BOT] post-merge updates
OCA-git-bot Jul 10, 2024
ebce1ee
[IMP] sale_fixed_discount: pre-commit auto fixes
achulii Nov 18, 2024
25959e3
[MIG] sale_fixed_discount: Migration to 18.0
achulii Nov 18, 2024
920a778
[DON'T MERGE] test-requirements.txt adding new line
achulii Nov 18, 2024
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
113 changes: 113 additions & 0 deletions sale_fixed_discount/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
===================
Sale Fixed Discount
===================

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

.. |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/18.0/sale_fixed_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-18-0/sale-workflow-18-0-sale_fixed_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=18.0
:alt: Try me on Runboat

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

This module extends the functionality of Sales to allow you to apply
fixed amount discount at sales order line level.

The module also extends the sales order report to show fixed discount.

**Table of contents**

.. contents::
:local:

Installation
============

This module depends on module 'account_invoice_fixed_discount',
available in
https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_fixed_discount

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

To configure this module, you need to:

1. Go to *Sales > Configuration > Settings*.
2. In the *Pricing* section select *Discounts* option to grant discounts
on sales order lines.

Usage
=====

To use this module, you need to:

1. Go to *Sales*.
2. Create a Sales Order and specify the type of discount and
fixed/percent discount in a 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_fixed_discount%0Aversion:%2018.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
-------

* ForgeFlow

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

- Lois Rilo <[email protected]>
(`www.forgeflow.com <http://www.forgeflow.com>`__)
- Jordi Ballester <[email protected]>
(`www.forgeflow.com <http://www.forgeflow.com>`__)
- Pieter Paulussen <[email protected]>
(`www.code-source.be <http://www.code-source.be>`__)

- OERP Canada <https://www.oerp.ca/>:

- Foram Darji <[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/18.0/sale_fixed_discount>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions sale_fixed_discount/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions sale_fixed_discount/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2017-20 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Fixed Discount",
"summary": "Allows to apply fixed amount discounts in sales orders.",
"version": "18.0.1.0.0",
"category": "Sales",
"website": "https://github.com/OCA/sale-workflow",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sale", "account_invoice_fixed_discount"],
"data": [
"security/res_groups.xml",
"reports/report_sale_order.xml",
"views/account_invoice_views.xml",
"views/sale_order_views.xml",
"views/sale_portal_templates.xml",
],
}
78 changes: 78 additions & 0 deletions sale_fixed_discount/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-14 17:32+0000\n"
"PO-Revision-Date: 2024-04-23 08:39+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: \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"
"X-Generator: Weblate 4.17\n"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span class=\"text-nowrap\"> %)</span>"
msgstr ""

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr ""

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.sale_order_portal_content
msgid "<span>Disc. Fixed Amount</span>"
msgstr "<span>Desc. Monto fijo</span>"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span>Discount Amount (%)</span>"
msgstr "<span>Importe del descuento (%)</span>"

#. module: sale_fixed_discount
#: model:ir.model.fields,field_description:sale_fixed_discount.field_sale_order_line__discount_fixed
msgid "Discount (Fixed)"
msgstr "Descuento (Fijo)"

#. module: sale_fixed_discount
#: model:ir.model.fields,help:sale_fixed_discount.field_sale_order_line__discount_fixed
msgid "Fixed amount discount."
msgstr "Importe fijo de descuento."

#. module: sale_fixed_discount
#: model:ir.model,name:sale_fixed_discount.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea Pedido de Venta"

#. module: sale_fixed_discount
#. odoo-python
#: code:addons/sale_fixed_discount/models/sale_order_line.py:0
#, python-format
msgid ""
"The fixed discount %(fixed)s does not match the calculateddiscount "
"%(discount)s %%.Please correct one of the discounts."
msgstr ""
"El descuento fijo %(fixed)s no coincide con el descuento calculado "
"%(discount)s %%.Por favor, corrija uno de los descuentos."

#~ msgid "(or"
#~ msgstr "(o"

#~ msgid "<span>Disc. %</span>"
#~ msgstr "<span>Desc. %</span>"

#, python-format
#~ msgid ""
#~ "The fixed discount %(fixed)s does not match the calculated discount "
#~ "%(discount)s %%. Please correct one of the discounts."
#~ msgstr ""
#~ "El descuento fijo %(fixed)s no coincide con el descuento calculado "
#~ "%(discount)s %%. Por favor, corrija uno de los descuentos."
61 changes: 61 additions & 0 deletions sale_fixed_discount/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-14 17:31+0000\n"
"PO-Revision-Date: 2024-02-14 17:31+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span class=\"text-nowrap\"> %)</span>"
msgstr ""

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr ""

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.sale_order_portal_content
msgid "<span>Disc. Fixed Amount</span>"
msgstr "<span>Remise en montant fixe</span>"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span>Discount Amount (%)</span>"
msgstr ""

#. module: sale_fixed_discount
#: model:ir.model.fields,field_description:sale_fixed_discount.field_sale_order_line__discount_fixed
msgid "Discount (Fixed)"
msgstr "Remise (fixe)"

#. module: sale_fixed_discount
#: model:ir.model.fields,help:sale_fixed_discount.field_sale_order_line__discount_fixed
msgid "Fixed amount discount."
msgstr "Remise en montant fixe."

#. module: sale_fixed_discount
#: model:ir.model,name:sale_fixed_discount.model_sale_order_line
msgid "Sales Order Line"
msgstr "Ligne de bons de commande"

#. module: sale_fixed_discount
#. odoo-python
#: code:addons/sale_fixed_discount/models/sale_order_line.py:0
#, python-format
msgid ""
"The fixed discount %(fixed)s does not match the calculateddiscount "
"%(discount)s %%.Please correct one of the discounts."
msgstr ""
78 changes: 78 additions & 0 deletions sale_fixed_discount/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_fixed_discount
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-14 17:30+0000\n"
"PO-Revision-Date: 2024-06-12 16:38+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 4.17\n"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span class=\"text-nowrap\"> %)</span>"
msgstr "<span class=\"text-nowrap\"> %)</span>"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span class=\"text-nowrap\"> (or</span>"
msgstr "<span class=\"text-nowrap\"> (o</span>"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.sale_order_portal_content
msgid "<span>Disc. Fixed Amount</span>"
msgstr "<span>Importo sconto fisso</span>"

#. module: sale_fixed_discount
#: model_terms:ir.ui.view,arch_db:sale_fixed_discount.report_saleorder_document
msgid "<span>Discount Amount (%)</span>"
msgstr "<span>Valore sconto (%)</span>"

#. module: sale_fixed_discount
#: model:ir.model.fields,field_description:sale_fixed_discount.field_sale_order_line__discount_fixed
msgid "Discount (Fixed)"
msgstr "Sconto (fisso)"

#. module: sale_fixed_discount
#: model:ir.model.fields,help:sale_fixed_discount.field_sale_order_line__discount_fixed
msgid "Fixed amount discount."
msgstr "Importo sconto fisso."

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

#. module: sale_fixed_discount
#. odoo-python
#: code:addons/sale_fixed_discount/models/sale_order_line.py:0
#, python-format
msgid ""
"The fixed discount %(fixed)s does not match the calculateddiscount "
"%(discount)s %%.Please correct one of the discounts."
msgstr ""
"Lo sconto fisso %(fixed)s non corrisponde allo sconto calcolato %(discount)s "
"%%. Correggere uno degli sconti."

#~ msgid "(or"
#~ msgstr "(o"

#~ msgid "<span>Disc. %</span>"
#~ msgstr "<span>Sconto %</span>"

#, python-format
#~ msgid ""
#~ "The fixed discount %(fixed)s does not match the calculated discount "
#~ "%(discount)s %%. Please correct one of the discounts."
#~ msgstr ""
#~ "Lo sconto fisso %(fixed)s non corrisponde allo sconto calcolato "
#~ "%(discount)s %%. Correggere uno degli sconti."
Loading
Loading