Skip to content

Commit 50c4e07

Browse files
[ADD] loyalty_partner_applicability: New module
TT45413
1 parent 831a1d2 commit 50c4e07

File tree

11 files changed

+563
-0
lines changed

11 files changed

+563
-0
lines changed
+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
=============================
2+
Loyalty Partner Applicability
3+
=============================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:ff75dd2351c209e20e6bec5b1f62004d2acf26a53acdd3712cb409a352de404e
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--promotion-lightgray.png?logo=github
20+
:target: https://github.com/OCA/sale-promotion/tree/16.0/loyalty_partner_applicability
21+
:alt: OCA/sale-promotion
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/sale-promotion-16-0/sale-promotion-16-0-loyalty_partner_applicability
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-promotion&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module extends the Loyalty functionality by allowing the definition of a customer
32+
filter for promotion rules. This module is a base to be extended.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Bug Tracker
40+
===========
41+
42+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-promotion/issues>`_.
43+
In case of trouble, please check there if your issue has already been reported.
44+
If you spotted it first, help us to smash it by providing a detailed and welcomed
45+
`feedback <https://github.com/OCA/sale-promotion/issues/new?body=module:%20loyalty_partner_applicability%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
46+
47+
Do not contact contributors directly about support or help with technical issues.
48+
49+
Credits
50+
=======
51+
52+
Authors
53+
~~~~~~~
54+
55+
* Tecnativa
56+
57+
Contributors
58+
~~~~~~~~~~~~
59+
60+
* `Tecnativa <https://www.tecnativa.com>`_:
61+
62+
* Pilar Vargas
63+
64+
Maintainers
65+
~~~~~~~~~~~
66+
67+
This module is maintained by the OCA.
68+
69+
.. image:: https://odoo-community.org/logo.png
70+
:alt: Odoo Community Association
71+
:target: https://odoo-community.org
72+
73+
OCA, or the Odoo Community Association, is a nonprofit organization whose
74+
mission is to support the collaborative development of Odoo features and
75+
promote its widespread use.
76+
77+
This module is part of the `OCA/sale-promotion <https://github.com/OCA/sale-promotion/tree/16.0/loyalty_partner_applicability>`_ project on GitHub.
78+
79+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2023 Tecnativa - Pilar Vargas
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Loyalty Partner Applicability",
5+
"summary": "Enables the definition of a customer filter for promotion rules that will "
6+
"only be applied to customers who meet the specified conditions in the filter.",
7+
"version": "16.0.1.0.0",
8+
"category": "Sale",
9+
"website": "https://github.com/OCA/sale-promotion",
10+
"author": "Tecnativa, Odoo Community Association (OCA)",
11+
"license": "AGPL-3",
12+
"depends": ["loyalty"],
13+
"data": ["views/loyalty_rule_view_form.xml"],
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import loyalty_rule
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2023 Tecnativa - Pilar Vargas
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
from odoo import fields, models
4+
5+
6+
class LoyaltyRule(models.Model):
7+
_inherit = "loyalty.rule"
8+
_description = "Loyalty Rule"
9+
10+
rule_partners_domain = fields.Char(
11+
string="Based on Customers",
12+
help="Loyalty program will work for selected customers only",
13+
default="[]",
14+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* `Tecnativa <https://www.tecnativa.com>`_:
2+
3+
* Pilar Vargas
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module extends the Loyalty functionality by allowing the definition of a customer
2+
filter for promotion rules. This module is a base to be extended.

0 commit comments

Comments
 (0)