Metadata-Version: 2.1
Name: odoo-addon-loyalty_criteria_multi_product
Version: 16.0.1.0.1.1
Summary: Allows to set as promotion criteria multi-product conditions
Home-page: https://github.com/OCA/sale-promotion
Author: Tecnativa, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.10
Requires-Dist: odoo<16.1dev,>=16.0a

==============================
Loyalty multi product criteria
==============================

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

.. |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/loyalty_criteria_multi_product
    :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-loyalty_criteria_multi_product
    :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|

Base module that allows to define complex rules on products to fulfill the conditions
of a loyalty program, so for a given set of products we could define a minimum quantity
and another for others, being all those criterias mandatory for the program to be
applied.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

The functionality of the "Repeat" option that was included in this module is now included
in the rules of an odoo promotion. In this functionality a criterion was established in
which any of the products defined in the list of the criterion itself had to be in the
sales order lines in the minimum quantity established for the promotion to be applied.
This functionality can now be applied in the following way:

- Defining or editing a promotion.
- Modifying the rules to indicate a minimum quantity and selecting the products,
  either by domain, specific products, product category or tag.

This way the promotion will be applicable when any of those products are in the order l
ines and the total of all or one of them meets the minimum quantity, as it was done when
the "Repeat" option was checked.

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

To configure multiple product criterias:

#. Go to *Sales > Product > Loyalty Programs* and select or create a new one.
#. Go to rules. On the *Loyalty Criteria* field choose *Multi Product*.
#. The standard domain will be hidden and a criteria list will be shown.
#. Add as many criterias as needed for the desired promotion behavior.

In the list of criterias we can configure:

- Products: The products that should be present to fulfill the condition.

Some examples:

===== ================
  Qty      Products
===== ================
    1   Prod A
===== ================

A unit of Product A must be in the sale order.

===== ================
  Qty      Products
===== ================
    2   Prod B, Prod C
===== ================

A unit of Product B and Product C must be in the sale order.

Also note that all the defined criterias must be fulfilled or the program won't be
applied.

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:%20loyalty_criteria_multi_product%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

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

  * Pedro M. Baeza
  * David Vidal
  * Stefan Ungureanu
  * Pilar Vargas

* `Domatix <https://www.domatix.com>`_:

  * Álvaro López Oró

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/16.0/loyalty_criteria_multi_product>`_ project on GitHub.

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