diff --git a/loyality_customer_domain/README.rst b/loyality_customer_domain/README.rst new file mode 100644 index 000000000..ff4d4fcb6 --- /dev/null +++ b/loyality_customer_domain/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://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 +------- +Developers: Version 16 - Saneen K @cybrosys + +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..ca6ca7540 --- /dev/null +++ b/loyality_customer_domain/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Saneen K (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..124551da0 --- /dev/null +++ b/loyality_customer_domain/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Saneen K (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': '16.0.1.0.0', + 'category': 'Sales/Sales', + 'description': 'Loyalty program customer domain', + 'summary': 'Loyalty program customer domain along with product domain', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.jpg'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'sale_loyalty', 'sale_management'], + 'data': [ + 'views/loyalty_rule_views.xml', + ], + '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..a41f8f1ce --- /dev/null +++ b/loyality_customer_domain/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 03.04.2023 +#### Version 16.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..6bc77e9ab --- /dev/null +++ b/loyality_customer_domain/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Saneen K (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..32c1a33dc --- /dev/null +++ b/loyality_customer_domain/models/loyalty_rule.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Saneen K (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..ca1da699d --- /dev/null +++ b/loyality_customer_domain/models/sale_order.py @@ -0,0 +1,155 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Saneen K (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 aswell 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/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/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/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/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/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/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.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.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/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/modules/1.png b/loyality_customer_domain/static/description/assets/modules/1.png new file mode 100644 index 000000000..29bcb6544 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/1.png 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..c1f30354a 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..6d637752d 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.png b/loyality_customer_domain/static/description/assets/modules/4.png new file mode 100644 index 000000000..3add135c3 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/4.png differ diff --git a/loyality_customer_domain/static/description/assets/modules/5.png b/loyality_customer_domain/static/description/assets/modules/5.png new file mode 100644 index 000000000..8658f1826 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/modules/5.png 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..7bd93512a 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.zip b/loyality_customer_domain/static/description/assets/screenshots.zip new file mode 100644 index 000000000..4f42e5ad7 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots.zip differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/01-add_conditional_rule.png b/loyality_customer_domain/static/description/assets/screenshots/01-add_conditional_rule.png new file mode 100644 index 000000000..f7a988dd5 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/01-add_conditional_rule.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/02-set_domain.png b/loyality_customer_domain/static/description/assets/screenshots/02-set_domain.png new file mode 100644 index 000000000..755d9fc59 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/02-set_domain.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/03-set_domain_rule.png b/loyality_customer_domain/static/description/assets/screenshots/03-set_domain_rule.png new file mode 100644 index 000000000..bee73b91e Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/03-set_domain_rule.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/04-promotion.png b/loyality_customer_domain/static/description/assets/screenshots/04-promotion.png new file mode 100644 index 000000000..a724d2753 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/04-promotion.png differ diff --git a/loyality_customer_domain/static/description/assets/screenshots/05-choose_a_program.png b/loyality_customer_domain/static/description/assets/screenshots/05-choose_a_program.png new file mode 100644 index 000000000..d5f4af77e Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/05-choose_a_program.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..217e75e81 Binary files /dev/null and b/loyality_customer_domain/static/description/assets/screenshots/hero.gif 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..4e0a3bb41 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..4303111e2 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..87d9de094 --- /dev/null +++ b/loyality_customer_domain/static/description/index.html @@ -0,0 +1,550 @@ +
+ +
+ +
+
+ Community +
+
+
+ +
+
+
+ +

+ Loyalty + Customer + Domain

+

Adding the customer domain in the promotion program.

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps to add the customer domain when we create any promotional program. We can give the particular + promotional program only for a particular customer by using this domain feature. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+ +
+ + Select Needed Customers for the Particular Promotional Program. +
+ +
+
+ +
+ + Available in Odoo 16.0 + Community. +
+ +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

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.

+ +
+ +
+

Choose the Promotion +

+

After setting the promotional program we can see a 'Promotions' button near + to the Total amount in the sale order window. We can create a sale order and add the promotional program by clicking on this button.

+ +
+ +
+

Choose the needed Promotional program +

+

From here we can select any promotional program as we needed. By clicking on the 'Apply' button we can add the promotional program in to the + corresponding sale order when the conditions that given in the rule is satisfied.

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

Related + Products +

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

Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ 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 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file 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..7bce93c60 --- /dev/null +++ b/loyality_customer_domain/views/loyalty_rule_views.xml @@ -0,0 +1,13 @@ + + + + loyalty.rule.form.inherit.loyalty.customer.domain + loyalty.rule + + + + + + + +