Skip to main content

Allows to auto-apply the coupons with no user intervention

Project description

Production/Stable License: AGPL-3 OCA/sale-promotion Translate me on Weblate Try me on Runboat

This module allows to auto apply the programs without the need of the user intervention.

Table of contents

Configuration

You can set this feature on or off in every company. To do so:

  1. Go to Sales > Configuration > Settings

  2. 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:

  1. Go to Settings > Technical > Config parameters

  2. 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

  3. 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. 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.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Tecnativa

  • Camptocamp

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainers:

chienandalu SilvioC2C

This module is part of the OCA/sale-promotion project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_sale_loyalty_auto_refresh-16.0.1.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_sale_loyalty_auto_refresh-16.0.1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26a1ac82b428fd609d470be3c5892f437331962e1daeb6503dd07ea48828ac97
MD5 b45fd78d9a79b38d844a75df74d556be
BLAKE2b-256 18ee67c17a23b3ab31906c0294b122dc4dee2f0fcd47b1815f8c34565551787f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page