-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by simahawk
- Loading branch information
Showing
30 changed files
with
1,757 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,137 @@ | ||
==================== | ||
Auto Refresh Coupons | ||
==================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:133096428fab5ae09fcaa35b8da33f24d667399972235fc7e8842692fbc2eb41 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/16.0/sale_loyalty_auto_refresh | ||
: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-16-0/sale-promotion-16-0-sale_loyalty_auto_refresh | ||
: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=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows to auto apply the programs without the need of the user intervention. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
You can set this feature on or off in every company. To do so: | ||
|
||
#. Go to *Sales > Configuration > Settings* | ||
#. In the *Pricing* section you'll find the option *Auto refresh promotions*. | ||
|
||
The auto-refresh in the backend is triggered over a minimum set of fields changes. If | ||
you want to extend the list of that fields: | ||
|
||
#. Go to *Settings > Technical > Config parameters* | ||
#. Add or update the key: | ||
|
||
- For `sale.order`: `sale_loyalty_auto_refresh.sale_order_triggers` | ||
- For `sale.order.line`: `sale_loyalty_auto_refresh.sale_order_line_triggers` | ||
#. In every add the fields seperated by commas that you want to add to the recomputation | ||
triggers. | ||
|
||
⚠️ After configuring or removing a trigger a restart of Odoo is recommended so the | ||
depends are reloaded properly. Anyway it isn't mandatory and the module detects the | ||
new triggers so the auto-refresh works as expected as soon as they are set. | ||
|
||
Usage | ||
===== | ||
|
||
You need to configure a *Promotion program* with the option *Program trigger* set to | ||
*Automatic* (shown in Debug mode only, read-only computed field). This can be done in *Sales > Products > Discount & Loyalty*. | ||
|
||
Now, make a quotation that fulfill the promotion condition and the promotion will be | ||
automatically applied. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* This module should be ported to OCA in v13 as Odoo released enterprise modules and | ||
they are now on the community side. | ||
|
||
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_auto_refresh%0Aversion:%2016.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 | ||
* Camptocamp | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* David Vidal | ||
* Pilar Vargas | ||
|
||
* `Camptocamp <https://www.camptocamp.com>`_: | ||
|
||
* Silvio Gregorini | ||
|
||
* `Trobz <https://www.trobz.com>`_: | ||
|
||
* Nguyen Minh Chien <[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. | ||
|
||
.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px | ||
:target: https://github.com/chienandalu | ||
:alt: chienandalu | ||
.. |maintainer-SilvioC2C| image:: https://github.com/SilvioC2C.png?size=40px | ||
:target: https://github.com/SilvioC2C | ||
:alt: SilvioC2C | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-chienandalu| |maintainer-SilvioC2C| | ||
|
||
This module is part of the `OCA/sale-promotion <https://github.com/OCA/sale-promotion/tree/16.0/sale_loyalty_auto_refresh>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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,2 @@ | ||
from . import models | ||
from . import wizard |
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,16 @@ | ||
# Copyright 2021 Tecnativa - David Vidal | ||
# Copyright 2021 Camptocamp - Silvio Gregorini | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Auto Refresh Coupons", | ||
"summary": "Allows to auto-apply the coupons with no user intervention", | ||
"version": "16.0.1.0.0", | ||
"development_status": "Production/Stable", | ||
"category": "Website", | ||
"website": "https://github.com/OCA/sale-promotion", | ||
"author": "Tecnativa, Camptocamp, Odoo Community Association (OCA)", | ||
"maintainers": ["chienandalu", "SilvioC2C"], | ||
"license": "AGPL-3", | ||
"depends": ["sale_loyalty"], | ||
"data": ["views/res_config_settings_views.xml"], | ||
} |
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,99 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * sale_loyalty_auto_refresh | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2023-11-08 13:38+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_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-" | ||
"specific.\" groups=\"base.group_multi_company\"/>" | ||
msgstr "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Los valores establecidos aquí " | ||
"son específicos de la compañía.\" groups=\"base.group_multi_company\"/>" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_coupon_refresh_mixin__auto_refresh_coupon_triggers_data | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_order__auto_refresh_coupon_triggers_data | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_order_line__auto_refresh_coupon_triggers_data | ||
msgid "Auto Refresh Coupon Triggers Data" | ||
msgstr "Actualizar Automáticamente los Datos de los Activadores de Cupones" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_res_company__auto_refresh_coupon | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_res_config_settings__auto_refresh_coupon | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_order__auto_refresh_coupon | ||
msgid "Auto Refresh Coupons" | ||
msgstr "Auto actualizar ofertas" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "Auto refresh coupons" | ||
msgstr "Auto actualizar ofertas" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "Auto-refresh coupons" | ||
msgstr "Auto actualizar ofertas" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model.fields,help:sale_loyalty_auto_refresh.field_res_company__auto_refresh_coupon | ||
#: model:ir.model.fields,help:sale_loyalty_auto_refresh.field_res_config_settings__auto_refresh_coupon | ||
#: model:ir.model.fields,help:sale_loyalty_auto_refresh.field_sale_order__auto_refresh_coupon | ||
msgid "Autorefresh coupon lines in the backorder" | ||
msgstr "Auto actualizar las líneas de descuento en backorder" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_res_company | ||
msgid "Companies" | ||
msgstr "Compañías" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "Ajustes" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_coupon_refresh_mixin | ||
msgid "Mixin class for sale coupon auto-refresh features" | ||
msgstr "Clase mixta de actualización automática de cupones de descuento" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_coupon_apply_code | ||
msgid "Sales Coupon Apply Code" | ||
msgstr "Cupón de descuento Aplicar código" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_order | ||
msgid "Sales Order" | ||
msgstr "Orden de Venta" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_order_line | ||
msgid "Sales Order Line" | ||
msgstr "Línea de Orden de Venta" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "" | ||
"When the sale order is updated, auto-refresh the promotion programs which " | ||
"are set to auto apply" | ||
msgstr "" | ||
"Cuando se actualice un pedido de venta, auto actualizar los programas de " | ||
"oferta configurados para auto aplicarse" | ||
|
||
#~ msgid "Sale Order" | ||
#~ msgstr "Pedido de Venta" |
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,105 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * sale_loyalty_auto_refresh | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-09-18 14:34+0000\n" | ||
"Last-Translator: Rémi <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: fr\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.3.2\n" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-" | ||
"specific.\" groups=\"base.group_multi_company\"/>" | ||
msgstr "" | ||
"<span class=\"fa fa-lg fa-building-o\" title=\"Ces valeurs sont pour une " | ||
"seule société.\" groups=\"base.group_multi_company\"/>" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_coupon_refresh_mixin__auto_refresh_coupon_triggers_data | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_order__auto_refresh_coupon_triggers_data | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_order_line__auto_refresh_coupon_triggers_data | ||
msgid "Auto Refresh Coupon Triggers Data" | ||
msgstr "" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_res_company__auto_refresh_coupon | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_res_config_settings__auto_refresh_coupon | ||
#: model:ir.model.fields,field_description:sale_loyalty_auto_refresh.field_sale_order__auto_refresh_coupon | ||
msgid "Auto Refresh Coupons" | ||
msgstr "Mise à jour automatique des promotions" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "Auto refresh coupons" | ||
msgstr "Mise à jour automatique des promotions" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "Auto-refresh coupons" | ||
msgstr "Mise à jour automatique des promotions" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model.fields,help:sale_loyalty_auto_refresh.field_res_company__auto_refresh_coupon | ||
#: model:ir.model.fields,help:sale_loyalty_auto_refresh.field_res_config_settings__auto_refresh_coupon | ||
#: model:ir.model.fields,help:sale_loyalty_auto_refresh.field_sale_order__auto_refresh_coupon | ||
msgid "Autorefresh coupon lines in the backorder" | ||
msgstr "Mise à jour automatique des promotions" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_res_company | ||
msgid "Companies" | ||
msgstr "Sociétés" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "Configuration" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_coupon_refresh_mixin | ||
msgid "Mixin class for sale coupon auto-refresh features" | ||
msgstr "" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_coupon_apply_code | ||
msgid "Sales Coupon Apply Code" | ||
msgstr "Utiliser le code promotionnel" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_order | ||
msgid "Sales Order" | ||
msgstr "Commandes" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model:ir.model,name:sale_loyalty_auto_refresh.model_sale_order_line | ||
msgid "Sales Order Line" | ||
msgstr "Ligne de Commande" | ||
|
||
#. module: sale_loyalty_auto_refresh | ||
#: model_terms:ir.ui.view,arch_db:sale_loyalty_auto_refresh.res_config_settings_view_form | ||
msgid "" | ||
"When the sale order is updated, auto-refresh the promotion programs which " | ||
"are set to auto apply" | ||
msgstr "" | ||
"Quand le devis est mis à jour, recalcule automatiquement les programmes de " | ||
"promotions configurés pour application automatique" | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "Nom affiché" | ||
|
||
#~ msgid "ID" | ||
#~ msgstr "ID" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Date de dernière modification" |
Oops, something went wrong.