diff --git a/loyality_customer_domain/README.rst b/loyality_customer_domain/README.rst new file mode 100644 index 000000000..932f5c0d4 --- /dev/null +++ b/loyality_customer_domain/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Loyalty Customer Domain +======================= +This module help you to add the customer domain in a promotional program. + +Configuration +============= +- Enable the debug mode. Under configuration settings enables the 'Discounts, Loyalty & Gift Card'. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Credits +------- +Developer: (V17)Subina, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/loyality_customer_domain/__init__.py b/loyality_customer_domain/__init__.py new file mode 100644 index 000000000..d18548b2b --- /dev/null +++ b/loyality_customer_domain/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Subina (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +################################################################################ +from . import models diff --git a/loyality_customer_domain/__manifest__.py b/loyality_customer_domain/__manifest__.py new file mode 100644 index 000000000..98e963612 --- /dev/null +++ b/loyality_customer_domain/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Subina (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +################################################################################ +{ + 'name': "Loyalty Customer Domain", + 'version': '17.0.1.0.0', + 'category': 'Sales', + 'summary': 'Loyalty program customer domain', + 'description': 'In Loyalty program customer domain can also be apply ' + ' along with product domain', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_loyalty', 'sale_management'], + 'data': [ + 'views/loyalty_rule_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/loyality_customer_domain/doc/RELEASE_NOTES.md b/loyality_customer_domain/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..1c594cbc3 --- /dev/null +++ b/loyality_customer_domain/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 05.02.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for Loyalty Customer Domain diff --git a/loyality_customer_domain/models/__init__.py b/loyality_customer_domain/models/__init__.py new file mode 100644 index 000000000..db69147fb --- /dev/null +++ b/loyality_customer_domain/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Subina (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +################################################################################ +from . import loyalty_rule +from . import sale_order diff --git a/loyality_customer_domain/models/loyalty_rule.py b/loyality_customer_domain/models/loyalty_rule.py new file mode 100644 index 000000000..8fbc25207 --- /dev/null +++ b/loyality_customer_domain/models/loyalty_rule.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Subina (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +################################################################################ +from odoo import fields, models + + +class LoyaltyRule(models.Model): + """Add field for applying the customer domain by inheriting the loyalty + rule""" + _inherit = 'loyalty.rule' + _description = 'Loyalty Rule' + + customer_domain = fields.Char(default="[]", string="Customer Domain", + help="Select the customer domain") diff --git a/loyality_customer_domain/models/sale_order.py b/loyality_customer_domain/models/sale_order.py new file mode 100644 index 000000000..7b5005dc9 --- /dev/null +++ b/loyality_customer_domain/models/sale_order.py @@ -0,0 +1,174 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Subina (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +################################################################################ +from ast import literal_eval +from odoo import models, _ +from odoo.tools.float_utils import float_round + + +class SaleOrder(models.Model): + """Inheriting the sale order for adding customer domain""" + _inherit = 'sale.order' + + def _program_check_compute_points(self, programs): + """ + Checks the program validity from the order lines as well as computing + the number of points to add. Returns a dict containing the error message + or the points that will be given with the keys 'points'. + Checks the validity of customer domain + """ + self.ensure_one() + # Prepare quantities + order_lines = self.order_line.filtered( + lambda line: line.product_id and not line.reward_id) + products = order_lines.product_id + products_qties = dict.fromkeys(products, 0) + for line in order_lines: + products_qties[line.product_id] += line.product_uom_qty + # Contains the products that can be applied per rule + products_per_rule = programs._get_valid_products(products) + # Prepare amounts + no_effect_lines = self._get_no_effect_on_threshold_lines() + base_untaxed_amount = self.amount_untaxed - sum( + line.price_subtotal for line in no_effect_lines) + base_tax_amount = self.amount_tax - sum( + line.price_tax for line in no_effect_lines) + amounts_per_program = { + p: {'untaxed': base_untaxed_amount, 'tax': base_tax_amount} for p in + programs} + # Customer set to False initially + customer = False + for line in self.order_line: + if not line.reward_id or line.reward_id.reward_type != 'discount': + continue + for program in programs: + # Do not consider the program's discount + automatic discount + # lines for the amount to check. + if customer and line.reward_id.program_id.trigger == 'auto' or line.reward_id.program_id == program: + amounts_per_program[program][ + 'untaxed'] -= line.price_subtotal + amounts_per_program[program]['tax'] -= line.price_tax + result = {} + # Check if the customer domain and sale order is same and set to True + for program in programs: + for rec in program.rule_ids: + if rec.customer_domain and rec.customer_domain != '[]': + customers = self.env['res.partner'].search( + literal_eval(rec.customer_domain)) + if self.partner_id in customers: + customer = True + untaxed_amount = amounts_per_program[program]['untaxed'] + tax_amount = amounts_per_program[program]['tax'] + # Used for error messages + # By default False, but True if no rules and applies_on current -> + # misconfigured coupons program + code_matched = not bool( + program.rule_ids) and program.applies_on == 'current' + # Stays false if all + # triggers have code and none have been activated + minimum_amount_matched = code_matched + product_qty_matched = code_matched + points = 0 + # Some rules may split their points per unit / money spent + # (i.e. gift cards 2x50$ must result in two 50$ codes) + rule_points = [] + program_result = result.setdefault(program, dict()) + for rule in program.rule_ids: + if rule.mode == 'with_code' and rule not in self.code_enabled_rule_ids and not customer: + continue + code_matched = True + rule_amount = rule._compute_amount(self.currency_id) + if rule_amount > (rule.minimum_amount_tax_mode == 'incl' and ( + untaxed_amount + tax_amount) or + untaxed_amount) and not customer: + continue + minimum_amount_matched = True + rule_products = products_per_rule[rule] + ordered_rule_products_qty = sum( + products_qties[product] for product in rule_products) + if ordered_rule_products_qty < rule.minimum_qty or not rule_products and not customer: + continue + product_qty_matched = True + if not rule.reward_point_amount and customer: + continue + # Count all points separately if the order is for the future + # and the split option is enabled + if program.applies_on == 'future' and rule.reward_point_split and rule.reward_point_mode != 'order': + if rule.reward_point_mode == 'unit' and customer: + rule_points.extend(rule.reward_point_amount for _ in + range( + int(ordered_rule_products_qty))) + elif rule.reward_point_mode == 'money': + for line in self.order_line: + if line.is_reward_line or line.product_id not in rule_products or \ + line.product_uom_qty <= 0 and not customer: + continue + points_per_unit = float_round( + (rule.reward_point_amount * line.price_total / line.product_uom_qty), + precision_digits=2, rounding_method='DOWN') + if not points_per_unit: + continue + rule_points.extend( + [points_per_unit] * int(line.product_uom_qty)) + else: + # All checks have been passed we can now compute the points + # to give + if rule.reward_point_mode == 'order' and customer: + points += rule.reward_point_amount + elif rule.reward_point_mode == 'money' and customer: + # Compute amount paid for rule + # NOTE: this does not account for discounts -> 1 point + # per $ * (100$ - 30%) + # will result in 100 points + amount_paid = sum(max(0, line.price_total) + for line in order_lines if + line.product_id in rule_products) + points += float_round( + rule.reward_point_amount * amount_paid, + precision_digits=2, rounding_method='DOWN') + elif rule.reward_point_mode == 'unit' and customer: + points += rule.reward_point_amount * ordered_rule_products_qty + # NOTE: for programs that are nominative we always allow the + # program to be 'applied' on the order + # with 0 points so that `_get_claimable_rewards` returns the + # rewards associated with those programs + if not program.is_nominative: + if not code_matched: + program_result['error'] = _("This program requires a " + "code to be applied.") + elif not minimum_amount_matched: + program_result['error'] = _( + 'A minimum of %(amount)s %(currency)s should ' + 'be purchased to get the reward', + amount=min(program.rule_ids.mapped('minimum_amount')), + currency=program.currency_id.name, + ) + elif not product_qty_matched: + program_result['error'] = _("You don't have the required " + "product quantities on your " + "sales order.") + elif not self._allow_nominative_programs(): + program_result['error'] = _("This program is not available " + "for public users.") + if 'error' not in program_result: + points_result = [points] + rule_points + program_result['points'] = points_result + return result diff --git a/loyality_customer_domain/static/description/assets/icons/capture (1).png b/loyality_customer_domain/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/capture (1).png differ diff --git a/loyality_customer_domain/static/description/assets/icons/check.png b/loyality_customer_domain/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/check.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/chevron.png b/loyality_customer_domain/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/chevron.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/cogs.png b/loyality_customer_domain/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/cogs.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/consultation.png b/loyality_customer_domain/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/consultation.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/ecom-black.png b/loyality_customer_domain/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/ecom-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/education-black.png b/loyality_customer_domain/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/education-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/hotel-black.png b/loyality_customer_domain/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/hotel-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/img.png b/loyality_customer_domain/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/img.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/license.png b/loyality_customer_domain/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/license.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/lifebuoy.png b/loyality_customer_domain/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/lifebuoy.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/manufacturing-black.png b/loyality_customer_domain/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/manufacturing-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/photo-capture.png b/loyality_customer_domain/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/photo-capture.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/pos-black.png b/loyality_customer_domain/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/pos-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/puzzle.png b/loyality_customer_domain/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/puzzle.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/restaurant-black.png b/loyality_customer_domain/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/restaurant-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/service-black.png b/loyality_customer_domain/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/service-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/trading-black.png b/loyality_customer_domain/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/trading-black.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/training.png b/loyality_customer_domain/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/training.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/update.png b/loyality_customer_domain/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/update.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/user.png b/loyality_customer_domain/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/user.png differ diff --git a/loyality_customer_domain/static/description/assets/icons/wrench.png b/loyality_customer_domain/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/loyality_customer_domain/static/description/assets/icons/wrench.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/Cybrosys R.png b/loyality_customer_domain/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/Cybrosys R.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/categories.png b/loyality_customer_domain/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/categories.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/check-box.png b/loyality_customer_domain/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/check-box.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/compass.png b/loyality_customer_domain/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/compass.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/corporate.png b/loyality_customer_domain/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/corporate.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/customer-support.png b/loyality_customer_domain/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/customer-support.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/cybrosys-logo.png b/loyality_customer_domain/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/cybrosys-logo.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/email.svg b/loyality_customer_domain/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/loyality_customer_domain/static/description/assets/misc/features.png b/loyality_customer_domain/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/features.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/logo.png b/loyality_customer_domain/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/logo.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/phone.svg b/loyality_customer_domain/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/loyality_customer_domain/static/description/assets/misc/pictures.png b/loyality_customer_domain/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/pictures.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/pie-chart.png b/loyality_customer_domain/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/pie-chart.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/right-arrow.png b/loyality_customer_domain/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/right-arrow.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/star (1) 2.svg b/loyality_customer_domain/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/loyality_customer_domain/static/description/assets/misc/star.png b/loyality_customer_domain/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/star.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/support (1) 1.svg b/loyality_customer_domain/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/loyality_customer_domain/static/description/assets/misc/support-email.svg b/loyality_customer_domain/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/loyality_customer_domain/static/description/assets/misc/support.png b/loyality_customer_domain/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/support.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/tick-mark.svg b/loyality_customer_domain/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/loyality_customer_domain/static/description/assets/misc/whatsapp 1.svg b/loyality_customer_domain/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/loyality_customer_domain/static/description/assets/misc/whatsapp.png b/loyality_customer_domain/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/misc/whatsapp.png differ diff --git a/loyality_customer_domain/static/description/assets/misc/whatsapp.svg b/loyality_customer_domain/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/loyality_customer_domain/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/loyality_customer_domain/static/description/assets/modules/1.jpg b/loyality_customer_domain/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..612be4b77 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/1.jpg differ diff --git a/loyality_customer_domain/static/description/assets/modules/2.png b/loyality_customer_domain/static/description/assets/modules/2.png new file mode 100644 index 000000000..eba886e6a Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/2.png differ diff --git a/loyality_customer_domain/static/description/assets/modules/3.png b/loyality_customer_domain/static/description/assets/modules/3.png new file mode 100644 index 000000000..69d47fc7d Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/3.png differ diff --git a/loyality_customer_domain/static/description/assets/modules/4.jpg b/loyality_customer_domain/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..0cbac311c Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/4.jpg differ diff --git a/loyality_customer_domain/static/description/assets/modules/5.jpg b/loyality_customer_domain/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..c8e6c355a Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/5.jpg differ diff --git a/loyality_customer_domain/static/description/assets/modules/6.png b/loyality_customer_domain/static/description/assets/modules/6.png new file mode 100644 index 000000000..0dea4f332 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/6.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/hero.gif b/loyality_customer_domain/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..64057f2ef Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/hero.gif differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/loyalty1.png b/loyality_customer_domain/static/description/assets/screenshots/loyalty1.png new file mode 100644 index 000000000..389a5a2c7 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/loyalty1.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/loyalty2.png b/loyality_customer_domain/static/description/assets/screenshots/loyalty2.png new file mode 100644 index 000000000..6d3e4055b Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/loyalty2.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/loyalty3.png b/loyality_customer_domain/static/description/assets/screenshots/loyalty3.png new file mode 100644 index 000000000..d64d9c1b0 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/loyalty3.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/loyalty4.png b/loyality_customer_domain/static/description/assets/screenshots/loyalty4.png new file mode 100644 index 000000000..8dd0c3051 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/loyalty4.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/loyalty5.png b/loyality_customer_domain/static/description/assets/screenshots/loyalty5.png new file mode 100644 index 000000000..2b1eb2ff3 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/loyalty5.png differ diff --git a/loyality_customer_domain/static/description/banner.jpg b/loyality_customer_domain/static/description/banner.jpg new file mode 100644 index 000000000..92c3c3af6 Binary files /dev/null and b/loyality_customer_domain/static/description/banner.jpg differ diff --git a/loyality_customer_domain/static/description/icon.png b/loyality_customer_domain/static/description/icon.png new file mode 100644 index 000000000..b5ecbd145 Binary files /dev/null and b/loyality_customer_domain/static/description/icon.png differ diff --git a/loyality_customer_domain/static/description/index.html b/loyality_customer_domain/static/description/index.html new file mode 100644 index 000000000..d5b7355e1 --- /dev/null +++ b/loyality_customer_domain/static/description/index.html @@ -0,0 +1,704 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+
+
+
+
+

+ Loyalty Customer Domain

+

+ Adding The Customer Domain In The Promotion Program. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Select needed customers for the particular + promotional program.

+
+
+
+
+
+
+ +
+
+

+ Available in odoo 17.0 community. +

+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+

+ Choose a promotional program and create + a new rule

+

+ Firstly you should ensure that the debug mode + is on. Go to Sale -> Products -> Discount & + Loyalty ->Create a new program. + After creating the program we can see that + a 'Add' button in Rules & Reward section. +

+
+
+
+
+
+
+ +
+
+

+ Set the Domain

+

+ On the wizard we can see that the field for + adding the customer domain. Click on it. +

+
+
+
+
+
+
+ +
+
+

+ Set the Domain Rule

+

+ On the wizard we can set the rule for selecting + the customer using any rules. After setting + the rules then save it. +

+
+
+
+
+
+
+ +
+
+

+ Confirm the rule +

+
+
+
+
+
+
+ +
+
+

+ Apply the promotion

+
+
+
+
+
+
+
    +
  • + + Select Needed Customers for the Particular + Promotional Program. +
  • +
  • + + Available in Odoo 17.0 Community. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on: 05 February 2024 +
+

+ Initial Commit for Loyalty Customer Domain

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/loyality_customer_domain/views/loyalty_rule_views.xml b/loyality_customer_domain/views/loyalty_rule_views.xml new file mode 100644 index 000000000..e1e43021b --- /dev/null +++ b/loyality_customer_domain/views/loyalty_rule_views.xml @@ -0,0 +1,14 @@ + + + + + loyalty.rule.view.form.inherit.loyalty.customer.domain + loyalty.rule + + + + + + + +