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_loyalty_order_line_link: Migration to 17.0 #234

Open
wants to merge 23 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
59de12e
[ADD] sale_coupon_order_line_link: New module
chienandalu Jul 23, 2021
d8b0ca9
[IMP] sale_coupon_order_line_link: link sale lines to rewards
chienandalu Sep 14, 2021
7db3809
[IMP] sale_coupon_order_line_link: link on reward lines to origin lines
chienandalu Oct 20, 2021
65bacbd
[IMP] sale_coupon_order_line_link: view applied promotions
chienandalu Mar 30, 2022
4c5a20a
[IMP] : black, isort, prettier
ilyasProgrammer May 6, 2022
3a6e161
[MIG] sale_coupon_order_line_link: Migration to 14.0
ilyasProgrammer May 6, 2022
e5d13e9
Added translation using Weblate (Italian)
francesco-ooops May 31, 2022
5df974b
[IMP] sale_coupon_order_line_link: hook method for extra discounts
chienandalu May 31, 2022
30605af
[FIX] sale_coupon_order_line_link: missing links
chienandalu Oct 28, 2022
fbe876c
[MIG] sale_coupon_order_line_link: Migration to 15.0
chienandalu Jan 18, 2023
dfc1039
Translated using Weblate (Italian)
francesco-ooops Feb 16, 2023
1fda0d5
[MIG] sale_coupon_order_line_link: Renamed to sale_loyalty_order_line…
pilarvargas-tecnativa Sep 18, 2023
1c60ebf
[UPD] Update sale_loyalty_order_line_link.pot
Sep 29, 2023
c26f38e
[BOT] post-merge updates
OCA-git-bot Sep 29, 2023
d873d1c
[FIX] sale_loyalty_order_line_link: Fix to avoid recursion error and …
pilarvargas-tecnativa Oct 4, 2023
3f54de0
[BOT] post-merge updates
OCA-git-bot Oct 6, 2023
cda7f10
Added translation using Weblate (Spanish)
Ivorra78 Nov 11, 2023
9445388
Translated using Weblate (Spanish)
Ivorra78 Nov 11, 2023
add5d76
Translated using Weblate (Italian)
mymage Dec 6, 2023
65372a8
[FIX] sale_loyalty_order_line_link: Fix SQL query of migration script.
pilarvargas-tecnativa Jul 10, 2024
50606a0
Translated using Weblate (Italian)
mymage Jul 18, 2024
1690335
[IMP] sale_loyalty_order_line_link: pre-commit auto fixes
arantxa-s73 Jan 15, 2025
d9a01e1
[MIG] sale_loyalty_order_line_link: Migration to 17.0
arantxa-s73 Jan 15, 2025
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
111 changes: 111 additions & 0 deletions sale_loyalty_order_line_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
====================================
Link loyalty programs to order lines
====================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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--promotion-lightgray.png?logo=github
:target: https://github.com/OCA/sale-promotion/tree/17.0/sale_loyalty_order_line_link
:alt: OCA/sale-promotion
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-promotion-17-0/sale-promotion-17-0-sale_loyalty_order_line_link
: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-promotion&target_branch=17.0
:alt: Try me on Runboat

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

This module adds a link in the sale order line to the program used in a
discount, so it can be easily tracked afterwards. Also eases the
implementation of loyalty modules that don't necessarily use the
discount product as product for the discount line.

It also links the reward lines to:

- The order lines that generated them, so we can follow which order
lines produced which discounts.
- The order lines over which the reward is applied:

- In a discount promo: the cheapest product, specific products or
the whole order.
- In a product promo: the product lines over which the reward is
discounted.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

- Rename to sale_coupon_traceability in v14 as it fits better the broad
features of the module.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-promotion/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-promotion/issues/new?body=module:%20sale_loyalty_order_line_link%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
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- David Vidal
- Pilar Vargas

- `Ooops404 <https://www.ooops404.com>`__:

- Ilyas

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.

.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px
:target: https://github.com/chienandalu
:alt: chienandalu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-chienandalu|

This module is part of the `OCA/sale-promotion <https://github.com/OCA/sale-promotion/tree/17.0/sale_loyalty_order_line_link>`_ 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 sale_loyalty_order_line_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import reports
16 changes: 16 additions & 0 deletions sale_loyalty_order_line_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Link loyalty programs to order lines",
"summary": "Adds a link between loyalty programs and their generated order lines"
"for easing tracking",
"version": "17.0.1.0.0",
"development_status": "Production/Stable",
"category": "Sale",
"website": "https://github.com/OCA/sale-promotion",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["chienandalu"],
"license": "AGPL-3",
"depends": ["sale_loyalty"],
"data": ["reports/sale_report_views.xml", "views/sale_order_views.xml"],
}
84 changes: 84 additions & 0 deletions sale_loyalty_order_line_link/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_loyalty_order_line_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-11 15:36+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\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_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_line_ids
msgid "Link on the reward lines applied from this one"
msgstr "Enlace sobre las líneas de recompensa aplicadas a partir de ésta"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_generated_line_ids
msgid "Link on the reward lines generated meeting this line as criteria"
msgstr ""
"Enlace en las líneas de recompensa generadas cumpliendo esta línea como "
"criterio"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__loyalty_program_id
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_report__loyalty_program_id
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_product_search
msgid "Loyalty Program"
msgstr "Programa de fidelización"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_origin_generated_line_ids
msgid ""
"Origin Link on the reward lines generated meeting this line as criteria"
msgstr ""
"Origen Enlace en las líneas de recompensa generadas cumpliendo esta línea "
"como criterio"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_origin_generated_line_ids
msgid "Origin Reward Generated lines"
msgstr "Origen Recompensa Líneas generadas"

#. module: sale_loyalty_order_line_link
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_product_search
msgid "Promotion Lines"
msgstr "Líneas de Promoción"

#. module: sale_loyalty_order_line_link
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_form
msgid "Promotions"
msgstr "Promociones"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_generated_line_ids
msgid "Reward Generated lines"
msgstr "Líneas Generadas por Recompensa"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_line_ids
msgid "Reward lines"
msgstr "Líneas de recompensa"

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_report
msgid "Sales Analysis Report"
msgstr "Informe Analítico de Ventas"

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_order
msgid "Sales Order"
msgstr "Orden de Venta"

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de Orden de Venta"
92 changes: 92 additions & 0 deletions sale_loyalty_order_line_link/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_loyalty_order_line_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-18 08:58+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\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_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_line_ids
msgid "Link on the reward lines applied from this one"
msgstr "Collegamento alle righe premio applicate da questa"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_generated_line_ids
msgid "Link on the reward lines generated meeting this line as criteria"
msgstr ""
"Collegamento alle righe premio create che rispondono ai criteri di questa "
"riga"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__loyalty_program_id
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_report__loyalty_program_id
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_product_search
msgid "Loyalty Program"
msgstr "Programma fedeltà"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_origin_generated_line_ids
msgid "Origin Link on the reward lines generated meeting this line as criteria"
msgstr ""
"Collegamento originario alle righe premio create che rispondono ai criteri "
"di questa riga"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_origin_generated_line_ids
msgid "Origin Reward Generated lines"
msgstr "Righe generate dal premio origine"

#. module: sale_loyalty_order_line_link
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_product_search
msgid "Promotion Lines"
msgstr "Righe promozione"

#. module: sale_loyalty_order_line_link
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_form
msgid "Promotions"
msgstr "Promozioni"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_generated_line_ids
msgid "Reward Generated lines"
msgstr "Righe premio create"

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_line_ids
msgid "Reward lines"
msgstr "Righe premio"

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_report
msgid "Sales Analysis Report"
msgstr "Resoconto analisi vendite"

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

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

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"
77 changes: 77 additions & 0 deletions sale_loyalty_order_line_link/i18n/sale_coupon_order_line_link.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_loyalty_order_line_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__coupon_program_id
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_report__coupon_program_id
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_product_search
msgid "Coupon Program"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_line_ids
msgid "Link on the reward lines applied from this one"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_generated_line_ids
msgid "Link on the reward lines generated meeting this line as criteria"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,help:sale_loyalty_order_line_link.field_sale_order_line__reward_origin_generated_line_ids
msgid ""
"Origin Link on the reward lines generated meeting this line as criteria"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_origin_generated_line_ids
msgid "Origin Reward Generated lines"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_product_search
msgid "Promotion Lines"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model_terms:ir.ui.view,arch_db:sale_loyalty_order_line_link.view_order_form
msgid "Promotions"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_generated_line_ids
msgid "Reward Generated lines"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model.fields,field_description:sale_loyalty_order_line_link.field_sale_order_line__reward_line_ids
msgid "Reward lines"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_report
msgid "Sales Analysis Report"
msgstr ""

#. module: sale_loyalty_order_line_link
#: model:ir.model,name:sale_loyalty_order_line_link.model_sale_order
msgid "Sales Order"
msgstr ""

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