@ -0,0 +1,48 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg |
||||
|
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: LGPL-3 |
||||
|
|
||||
|
Pos Membership |
||||
|
=============== |
||||
|
This is used to create membership types for customer and also this customer can |
||||
|
apply discounts for their orders using the membership code. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configurations needed |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V16) Gayathri V |
||||
|
Contacts: 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 <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
"""pos membership""" |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
@ -0,0 +1,55 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': 'Pos Membership', |
||||
|
'version': '16.0.1.0.0', |
||||
|
'category': 'Point of Sale', |
||||
|
'summary': """This module is used to add membership discount in pos""", |
||||
|
'description': """This is used to create membership types for customer and |
||||
|
also this customer can apply discounts for their orders using the membership |
||||
|
code.""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['pos_sale', 'sale', 'pos_loyalty', 'pos_discount'], |
||||
|
'data': { |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/res_config_settings_views.xml', |
||||
|
'views/customer_membership_views.xml', |
||||
|
'views/membership_card_views.xml', |
||||
|
}, |
||||
|
'assets': { |
||||
|
'point_of_sale.assets': [ |
||||
|
'membership_in_pos/static/src/js/AbstractAwaitablePopup.js', |
||||
|
'membership_in_pos/static/src/js/PaymentScreen.js', |
||||
|
'membership_in_pos/static/src/js/ProductScreen.js', |
||||
|
'membership_in_pos/static/src/xml/membership_pop_up.xml', |
||||
|
'membership_in_pos/static/src/xml/PaymentScreen.xml', |
||||
|
], |
||||
|
}, |
||||
|
'images': ['static/description/banner.png'], |
||||
|
'license': 'LGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': True, |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
## Module <membership_in_pos> |
||||
|
|
||||
|
#### 18.10.2023 |
||||
|
#### Version 16.0.1.0.0 |
||||
|
##### ADD |
||||
|
- Initial commit for Pos Membership |
@ -0,0 +1,26 @@ |
|||||
|
"""Pos_membership""" |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import customer_membership |
||||
|
from . import membership_card |
||||
|
from . import pos_session |
||||
|
from . import res_config_settings |
@ -0,0 +1,38 @@ |
|||||
|
"""Membership""" |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class CustomerMembership(models.Model): |
||||
|
"""Creates membership types""" |
||||
|
_name = 'customer.membership' |
||||
|
_inherit = 'mail.thread' |
||||
|
_description = 'Customer Membership' |
||||
|
|
||||
|
name = fields.Char(string='Name', required=True, help='Name') |
||||
|
default_period = fields.Float(default=1, readonly="True", |
||||
|
string='Default Validity Period(Year)', |
||||
|
help='Default validity period in year') |
||||
|
_sql_constraints = [ |
||||
|
('name_uniq', 'unique (name)', 'The membership name must be unique !') |
||||
|
] |
@ -0,0 +1,102 @@ |
|||||
|
""""Pos membership""" |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from uuid import uuid4 |
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo import exceptions |
||||
|
|
||||
|
|
||||
|
class MembershipCard(models.Model): |
||||
|
"""Creating membership card for the customers""" |
||||
|
_name = 'membership.card' |
||||
|
_inherit = 'mail.thread' |
||||
|
_description = 'Membership Card' |
||||
|
_rec_name = 'membership_id' |
||||
|
|
||||
|
membership_id = fields.Many2one('customer.membership', string='Membership', |
||||
|
required=True, help='Membership id') |
||||
|
customer_id = fields.Many2one('res.partner', string="Customer", |
||||
|
help='The customer') |
||||
|
issue_date = fields.Date(string="Issue Date", help='Issue date') |
||||
|
validity = fields.Float(string='Validity(days)', |
||||
|
compute='_compute_validity', |
||||
|
help='Validity of membership card') |
||||
|
expiry_date = fields.Date(string="Exp Date", default=fields.Date.today(), |
||||
|
help='Expiry date of membership card') |
||||
|
code = fields.Char(string="Code", help='Unique code for the card', |
||||
|
readonly=True) |
||||
|
membership_code_button = fields.Boolean(default=False, string="Visibility", |
||||
|
help='The code generation button visibility') |
||||
|
discount = fields.Float(string='Discount(%)', help='Discount percentage amount') |
||||
|
state = fields.Selection( |
||||
|
[('draft', 'Draft'), ('confirm', 'Confirm'), ('cancel', 'Cancel')], |
||||
|
default='draft', string='State', help='State of the membership') |
||||
|
|
||||
|
@api.onchange('expiry_date') |
||||
|
def _onchange_expiry_date(self): |
||||
|
"""This is used to check the expiry date of the membership""" |
||||
|
if self.expiry_date < fields.Date.today(): |
||||
|
raise exceptions.ValidationError(_( |
||||
|
"Please select a Valid Date." |
||||
|
)) |
||||
|
|
||||
|
def generate_code(self): |
||||
|
"""Used to generate the code for membership card""" |
||||
|
self.code = '550' + str(uuid4())[7:-18] |
||||
|
self.membership_code_button = True |
||||
|
|
||||
|
def action_membership_confirm(self): |
||||
|
"""Used to confirm the membership""" |
||||
|
self.state = 'confirm' |
||||
|
|
||||
|
def action_membership_canceled(self): |
||||
|
"""Cancels the membership""" |
||||
|
self.state = 'cancel' |
||||
|
|
||||
|
def _compute_validity(self): |
||||
|
"""Computes the validity""" |
||||
|
for rec in self: |
||||
|
date = rec.expiry_date - rec.issue_date |
||||
|
rec.validity = date.days |
||||
|
|
||||
|
def membership_card_check(self, customer_input): |
||||
|
"""Checks the validity of the membership card""" |
||||
|
val = self.env['membership.card'].search( |
||||
|
[('customer_id.id', '=', customer_input[0]['customer']), |
||||
|
('code', '=', customer_input[0]['customerInput']), |
||||
|
('expiry_date', '>', fields.Date.today()), |
||||
|
('state', '=', 'confirm')]) |
||||
|
membership_discount = self.env['membership.card'].sudo().search([( |
||||
|
'customer_id.id', '=', customer_input[0]['customer'])]).mapped( |
||||
|
'discount') |
||||
|
membership_product = int( |
||||
|
self.env['ir.config_parameter'].sudo().get_param( |
||||
|
'pos_membership_product_id')) |
||||
|
if val: |
||||
|
return { |
||||
|
'customer_name': val.customer_id.name, |
||||
|
'membership': val.membership_id.name, |
||||
|
'discount': membership_discount[0], |
||||
|
'product_id': membership_product, |
||||
|
} |
||||
|
else: |
||||
|
return 0 |
@ -0,0 +1,50 @@ |
|||||
|
"""Pos membership""" |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, models |
||||
|
|
||||
|
|
||||
|
class PosSession(models.Model): |
||||
|
"""This is used to load the models and fields to pos session""" |
||||
|
_inherit = 'pos.session' |
||||
|
|
||||
|
@api.model |
||||
|
def _pos_ui_models_to_load(self): |
||||
|
"""This is used to load a new model to pos session""" |
||||
|
result = super()._pos_ui_models_to_load() |
||||
|
result += [ |
||||
|
'res.config.settings', |
||||
|
] |
||||
|
return result |
||||
|
|
||||
|
def _loader_params_res_config_settings(self): |
||||
|
"""This is used to load the model fields""" |
||||
|
return { |
||||
|
'search_params': { |
||||
|
'fields': ['is_pos_module_pos_membership'], |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
def _get_pos_ui_res_config_settings(self, params): |
||||
|
"""This is used to load the model""" |
||||
|
return self.env['res.config.settings'].search_read( |
||||
|
**params['search_params']) |
@ -0,0 +1,78 @@ |
|||||
|
"""Pos membership""" |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri v (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import exceptions |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
"""This class used to add fields in the settings model""" |
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
pos_membership_product_id = fields.Many2one('product.product', |
||||
|
string="Membership Product", |
||||
|
help="Membership product", |
||||
|
compute='_compute_pos_membership_discount_product_id', |
||||
|
store=True, readonly=False) |
||||
|
is_pos_module_pos_membership = fields.Boolean(string="Pos Membership", |
||||
|
help="Pos module's pos membership") |
||||
|
|
||||
|
@api.depends('is_pos_module_pos_membership') |
||||
|
def _compute_pos_membership_discount_product_id(self): |
||||
|
"""This is used to compute the default discount product of membership""" |
||||
|
for rec in self: |
||||
|
if rec.is_pos_module_pos_membership: |
||||
|
rec.pos_membership_product_id = self.env.ref( |
||||
|
'point_of_sale.product_product_consumable').id |
||||
|
else: |
||||
|
rec.pos_membership_product_id = False |
||||
|
|
||||
|
def get_values(self): |
||||
|
"""Getting the values from the transient model""" |
||||
|
res = super(ResConfigSettings, self).get_values() |
||||
|
params = self.env['ir.config_parameter'].sudo() |
||||
|
is_pos_module_pos_membership = params.get_param('membership_in_pos.' |
||||
|
'is_pos_module_pos_membership') |
||||
|
res.update( |
||||
|
pos_membership_product_id=int( |
||||
|
self.env['ir.config_parameter'].sudo().get_param( |
||||
|
'pos_membership_product_id')), |
||||
|
is_pos_module_pos_membership=is_pos_module_pos_membership |
||||
|
) |
||||
|
return res |
||||
|
|
||||
|
@api.model |
||||
|
def set_values(self): |
||||
|
""" Set values for the fields """ |
||||
|
super().set_values() |
||||
|
self.env['ir.config_parameter'].sudo().set_param( |
||||
|
'pos_membership_product_id', |
||||
|
self.pos_membership_product_id.id) |
||||
|
self.env['ir.config_parameter'].sudo().set_param( |
||||
|
'membership_in_pos.is_pos_module_pos_membership', |
||||
|
self.is_pos_module_pos_membership) |
||||
|
if self.pos_membership_product_id: |
||||
|
if not (self.pos_membership_product_id.available_in_pos): |
||||
|
raise exceptions.UserError( |
||||
|
"The discount product seems misconfigured.Make sure it is " |
||||
|
"flagged as 'Can be Sold' and 'Available in Point of Sale") |
||||
|
|
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 150 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 203 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,564 @@ |
|||||
|
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> |
||||
|
<!-- TITLE BAR --> |
||||
|
<div |
||||
|
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> |
||||
|
<img src="./assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;"/> |
||||
|
<div> |
||||
|
<div |
||||
|
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Enterprise |
||||
|
</div> |
||||
|
<div |
||||
|
style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF TITLE BAR --> |
||||
|
|
||||
|
<!-- APP HERO --> |
||||
|
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">Pos Membership</h1> |
||||
|
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> It is used to add membership discounts to customers. </p> |
||||
|
<!-- END OF APP HERO --> |
||||
|
<img src="./assets/screenshots/hero.gif" style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- NAVIGATION SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/compass.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This |
||||
|
Module</h2> |
||||
|
</div> |
||||
|
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#overview"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn |
||||
|
more about this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="./assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#features"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View features of this module</span> |
||||
|
</div> |
||||
|
<img src="./assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#screenshots"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View screenshots for this module</span> |
||||
|
</div> |
||||
|
<img src="./assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF NAVIGATION SECTION --> |
||||
|
|
||||
|
<!-- OVERVIEW SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/pie-chart.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 py-4"> |
||||
|
The app is used to add membership discounts to the those customers having memberships. |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF OVERVIEW SECTION --> |
||||
|
|
||||
|
<!-- FEATURES SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/features.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex flex-column justify-content-center align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Add membership Types.</span> |
||||
|
</div> |
||||
|
<div class="d-flex flex-column justify-content-center align-items-start" |
||||
|
style="margin-top: 30px; margin-bottom: 30px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create membership and discounts for customers.</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF FEATURES SECTION --> |
||||
|
|
||||
|
<!-- SCREENSHOTS SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/pictures.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> After installing the module a new menu will be appeared.</p> |
||||
|
<img src="./assets/screenshots/1.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Go to settings and add the discount product.</p> |
||||
|
<img src="./assets/screenshots/13.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create membership types</h3> |
||||
|
<img src="./assets/screenshots/2.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Form view of membership.</h3> |
||||
|
<img src="./assets/screenshots/3.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Membership card for customers.</h3> |
||||
|
<img src="./assets/screenshots/4.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Form view of membership card.</h3> |
||||
|
<img src="./assets/screenshots/5.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> Pos order for the customer having membership</h3> |
||||
|
<img src="./assets/screenshots/6.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> Membership on the payment screen </h3> |
||||
|
<img src="./assets/screenshots/7.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Select the membership with the customer</h3> |
||||
|
<img src="./assets/screenshots/8.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Copy the code and check the membership</h3> |
||||
|
<img src="./assets/screenshots/9.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">The discount will be applied</h3> |
||||
|
<img src="./assets/screenshots/10.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">It will also shown in the receipt.</h3> |
||||
|
<img src="./assets/screenshots/11.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SCREENSHOTS SECTION --> |
||||
|
|
||||
|
<!-- RELATED PRODUCTS --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/categories.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related |
||||
|
Products |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
||||
|
<!-- The slideshow --> |
||||
|
<div class="carousel-inner" style="padding: 30px;"> |
||||
|
<div class="carousel-item" style="min-height: 198.656px;"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/ecommerce_barcode_search/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/barcode.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/myfatoorah_payment_gateway/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/fatoorah.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/hr_zk_attendance/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/integration_biometric.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item active" style="min-height: 198.656px;"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/product_brand_ecommerce/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/product_brand.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/base_accounting_kit/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/5.gif"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/website_cart_clear/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/website_cart.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Left and right controls --> |
||||
|
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span |
||||
|
class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span> |
||||
|
</a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000"> |
||||
|
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size:24px"></i></span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF RELATED PRODUCTS --> |
||||
|
|
||||
|
<!-- OUR SERVICES --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/star.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Customization</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Support</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/user.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Hire |
||||
|
Odoo |
||||
|
Developer</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Integration</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/update.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Migration</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Consultancy</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/training.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="./assets/icons/license.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Licensing Consultancy</h6> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF OUR SERVICES --> |
||||
|
|
||||
|
<!-- OUR INDUSTRIES --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/corporate.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our |
||||
|
Industries |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Trading |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easily procure |
||||
|
and |
||||
|
sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
POS |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easy |
||||
|
configuration |
||||
|
and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Education |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
A platform for |
||||
|
educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" |
||||
|
width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Manufacturing |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Plan, track and |
||||
|
schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
E-commerce & Website |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Mobile |
||||
|
friendly, |
||||
|
awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Service Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Keep track of |
||||
|
services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Restaurant |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Run your bar or |
||||
|
restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Hotel Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
An |
||||
|
all-inclusive |
||||
|
hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF OUR INDUSTRIES --> |
||||
|
|
||||
|
<!-- SUPPORT --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/customer-support.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4" |
||||
|
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="./assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>Need Help?</h4> |
||||
|
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p> |
||||
|
<a href="mailto:odoo@cybrosys.com"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
||||
|
odoo@cybrosys.com</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4" |
||||
|
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="./assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>WhatsApp</h4> |
||||
|
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p> |
||||
|
<a href="https://api.whatsapp.com/send?phone=918606827707"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068 |
||||
|
27707</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> |
||||
|
<img src="./assets/misc/logo.png" width="144" height="31" |
||||
|
style="width:144px; height: 31px; margin-top: 40px;"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SUPPORT --> |
@ -0,0 +1,101 @@ |
|||||
|
odoo.define('membership_in_pos.MembershipPopup', function (require) { |
||||
|
'use strict'; |
||||
|
const { Gui } = require('point_of_sale.Gui'); |
||||
|
const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); |
||||
|
const Registries = require('point_of_sale.Registries'); |
||||
|
const { _t } = require('web.core'); |
||||
|
var rpc = require('web.rpc'); |
||||
|
//Creates a pop up for membership
|
||||
|
class MembershipPopup extends AbstractAwaitablePopup { |
||||
|
setup() { |
||||
|
super.setup(); |
||||
|
} |
||||
|
// This is used to check the customer has membership
|
||||
|
async Membership_check(){ |
||||
|
var customer_details = [] |
||||
|
const customerInput = $('.card_code').val(); |
||||
|
var order = this.env.pos.get_order() |
||||
|
var customer = order.get_partner().id |
||||
|
customer_details.push({ |
||||
|
'customerInput':customerInput, |
||||
|
'customer':customer |
||||
|
}) |
||||
|
var self = this |
||||
|
//This is used to retrieve the customers membership details
|
||||
|
var card = await rpc.query({ |
||||
|
model: 'membership.card', |
||||
|
method: 'membership_card_check', |
||||
|
args: [,customer_details] |
||||
|
}).then(function (card) { |
||||
|
self.env.pos.card = card |
||||
|
if (self.env.pos.card == 0){ |
||||
|
Gui.showPopup('ErrorPopup', { |
||||
|
title: _t('Membership'), |
||||
|
body: _t('Your Card is Expired/Please check you have membership.') |
||||
|
}); |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
//Confirms the membership
|
||||
|
async confirm() { |
||||
|
var order = this.env.pos.get_order(); |
||||
|
var lines = order.get_orderlines(); |
||||
|
if (this.env.pos.card){ |
||||
|
var product = this.env.pos.db.get_product_by_id(this.env.pos.card.product_id); |
||||
|
} |
||||
|
else{ |
||||
|
var product = 'undefined' |
||||
|
await this.showPopup('ErrorPopup', { |
||||
|
title : this.env._t("No Membership discount product found"), |
||||
|
body : this.env._t("The discount product seems misconfigured.Make sure it is flagged as 'Can be Sold' and 'Available in Point of Sale'.Also confirm the customer has membership card."), |
||||
|
}); |
||||
|
return; |
||||
|
} |
||||
|
// Remove existing discounts
|
||||
|
lines.filter(line => line.get_product() === product) |
||||
|
.forEach(line => order.remove_orderline(line)); |
||||
|
let linesByTax = order.get_orderlines_grouped_by_tax_ids(); |
||||
|
for (let [tax_ids, lines] of Object.entries(linesByTax)) { |
||||
|
// Note that tax_ids_array is an Array of tax_ids that apply to these lines
|
||||
|
// That is, the use case of products with more than one tax is supported.
|
||||
|
let tax_ids_array = tax_ids.split(',').filter(id => id !== '').map(id => Number(id)); |
||||
|
let baseToDiscount = order.calculate_base_amount(tax_ids_array, lines.filter(ll => !ll.reward_id && (!this.env.pos.config.tip_product_id || ll.product.id !== this.env.pos.config.tip_product_id[0]))); |
||||
|
// We add the price as manually set to avoid re computation when changing customer.
|
||||
|
let discount = - parseFloat(this.env.pos.card.discount) / 100.0 * baseToDiscount; |
||||
|
if (discount < 0) { |
||||
|
order.add_product(product, { |
||||
|
price: discount, |
||||
|
lst_price: discount, |
||||
|
tax_ids: tax_ids_array, |
||||
|
merge: false, |
||||
|
description: |
||||
|
`${ this.env.pos.card.discount}%, ` + |
||||
|
(tax_ids_array.length ? |
||||
|
_.str.sprintf( |
||||
|
this.env._t('Tax: %s'), |
||||
|
tax_ids_array.map(taxId => this.env.pos.taxes_by_id[taxId].amount + '%').join(', ') |
||||
|
) : |
||||
|
this.env._t('No tax')), |
||||
|
extras: { |
||||
|
price_automatically_set: true, |
||||
|
}, |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
this.env.posbus.trigger('close-popup', { |
||||
|
popupId: this.props.id, |
||||
|
response: { confirmed: true, payload: null}, |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
//Create membership popup
|
||||
|
MembershipPopup.template = 'MembershipPopup'; |
||||
|
MembershipPopup.defaultProps = { |
||||
|
confirmText: 'Ok', |
||||
|
cancelText: 'Cancel', |
||||
|
title: 'Membership Card', |
||||
|
body: '', |
||||
|
}; |
||||
|
Registries.Component.add(MembershipPopup); |
||||
|
return MembershipPopup; |
||||
|
}); |
@ -0,0 +1,29 @@ |
|||||
|
odoo.define('membership_in_pos.membership', function (require) { |
||||
|
'use strict'; |
||||
|
var { PosGlobalState } = require('point_of_sale.models'); |
||||
|
const Registries = require('point_of_sale.Registries'); |
||||
|
const PaymentScreen = require('point_of_sale.PaymentScreen'); |
||||
|
const PosMembershipGlobalState = (PosGlobalState) => |
||||
|
class PosMembershipGlobalState extends PosGlobalState { |
||||
|
//@override
|
||||
|
async _processData(loadedData) { |
||||
|
await super._processData(loadedData); |
||||
|
this.res_config = loadedData['res.config.settings']; |
||||
|
} |
||||
|
} |
||||
|
Registries.Model.extend(PosGlobalState, PosMembershipGlobalState); |
||||
|
//extends the payment screen
|
||||
|
const CustomButtonPaymentScreen = (PaymentScreen) => |
||||
|
class extends PaymentScreen { |
||||
|
setup() { |
||||
|
super.setup(...arguments); |
||||
|
this.env.pos.membership = this.env.pos.res_config[this.env.pos.res_config.length-1].is_pos_module_pos_membership |
||||
|
} |
||||
|
async MemberShipButton() { |
||||
|
// click_membership shows the pop up
|
||||
|
const { confirmed } = await this.showPopup('MembershipPopup'); |
||||
|
} |
||||
|
}; |
||||
|
Registries.Component.extend(PaymentScreen, CustomButtonPaymentScreen); |
||||
|
return CustomButtonPaymentScreen; |
||||
|
}); |
@ -0,0 +1,40 @@ |
|||||
|
odoo.define('membership_in_pos.customer', function (require) { |
||||
|
"use strict"; |
||||
|
const Registries = require('point_of_sale.Registries'); |
||||
|
const ProductScreen = require('point_of_sale.ProductScreen'); |
||||
|
var { Gui } = require('point_of_sale.Gui'); |
||||
|
var core = require('web.core'); |
||||
|
var _t = core._t; |
||||
|
const PosCustomer = (ProductScreen) => |
||||
|
class extends ProductScreen { |
||||
|
setup(){ |
||||
|
super.setup(); |
||||
|
} |
||||
|
//To check where the customer has to be selected
|
||||
|
async _onClickPay() { |
||||
|
if (this.env.pos.get_order().get_partner()){ |
||||
|
if (this.env.pos.get_order().orderlines.some(line => line.get_product().tracking !== 'none' && !line.has_valid_product_lot()) && (this.env.pos.picking_type.use_create_lots || this.env.pos.picking_type.use_existing_lots)) { |
||||
|
const { confirmed } = await this.showPopup('ConfirmPopup', { |
||||
|
title: this.env._t('Some Serial/Lot Numbers are missing'), |
||||
|
body: this.env._t('You are trying to sell products with serial/lot numbers, but some of them are not set.\nWould you like to proceed anyway?'), |
||||
|
confirmText: this.env._t('Yes'), |
||||
|
cancelText: this.env._t('No') |
||||
|
}); |
||||
|
if (confirmed) { |
||||
|
this.showScreen('PaymentScreen'); |
||||
|
} |
||||
|
} else { |
||||
|
this.showScreen('PaymentScreen'); |
||||
|
} |
||||
|
} |
||||
|
else{ |
||||
|
Gui.showPopup("ErrorPopup", { |
||||
|
'title': _t("Customer"), |
||||
|
'body': _t("You Must Select a Customer"), |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
Registries.Component.extend(ProductScreen, PosCustomer); |
||||
|
return ProductScreen; |
||||
|
}); |
@ -0,0 +1,19 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<!-- Adding an extra button membership to the PaymentScreen--> |
||||
|
<t t-inherit="point_of_sale.PaymentScreen" t-inherit-mode="extension"> |
||||
|
<xpath expr="//div[hasclass('payment-controls')]" position="inside"> |
||||
|
<t t-if="env.pos.membership"> |
||||
|
<div> |
||||
|
<div id="membership_button" class="button" |
||||
|
t-on-click="MemberShipButton"> |
||||
|
<i class="fa fa-address-card"/> |
||||
|
Membership |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-else=""> |
||||
|
</t> |
||||
|
</xpath> |
||||
|
</t> |
||||
|
</templates> |
@ -0,0 +1,51 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<t t-name="MembershipPopup" owl="1"> |
||||
|
<div role="dialog" class="modal-dialog"> |
||||
|
<div class="popup popup-couponproducts"> |
||||
|
<p class="title"> |
||||
|
<t t-esc="props.title"/> |
||||
|
</p> |
||||
|
<span class="body"> |
||||
|
<!-- Adding text field--> |
||||
|
<div> |
||||
|
<label for="card_code">Card Code:</label> |
||||
|
<input class='card_code' type="text"/> |
||||
|
</div> |
||||
|
<!-- Adding button --> |
||||
|
<div class="button check" t-on-click="Membership_check"> |
||||
|
<label for="card_check">Check</label> |
||||
|
<t t-esc="props.checkText"/> |
||||
|
</div> |
||||
|
<!-- Adding selection field--> |
||||
|
</span> |
||||
|
<br/> |
||||
|
<br/> |
||||
|
<br/> |
||||
|
<br/> |
||||
|
<t t-if="env.pos.card"> |
||||
|
<div> |
||||
|
<div> |
||||
|
<label for="card_code">Customer :</label> |
||||
|
<t t-esc="env.pos.card.customer_name"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<label for="card_code">Membership :</label> |
||||
|
<t t-esc="env.pos.card.membership + - + env.pos.card.discount"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
<br/> |
||||
|
<br/> |
||||
|
<div class="footer"> |
||||
|
<div class="button cancel" t-on-click="confirm"> |
||||
|
<t t-esc="props.confirmText"/> |
||||
|
</div> |
||||
|
<div class="button cancel" t-on-click="cancel"> |
||||
|
<t t-esc="props.cancelText"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</templates> |
@ -0,0 +1,53 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!--records for creating membership types for customers--> |
||||
|
<record id="customer_membership_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Membership</field> |
||||
|
<field name="res_model">customer.membership</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="o_view_nocontent_smiling_face"> |
||||
|
Generate Membership Types |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Tree view for customers membership--> |
||||
|
<record id="customer_membership_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">customer.membership.view.tree</field> |
||||
|
<field name="model">customer.membership</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Membership"> |
||||
|
<field name="name"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--form view for customers membership--> |
||||
|
<record id="customer_membership_view_form" model="ir.ui.view"> |
||||
|
<field name="name">customer.membership.view.form</field> |
||||
|
<field name="model">customer.membership</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Memberships"> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<field name="name"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="default_period"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
<div class="oe_chatter"> |
||||
|
<field name="message_follower_ids" |
||||
|
options="{'open_attachments': True}"/> |
||||
|
<field name="message_ids"/> |
||||
|
</div> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem id="pos_membership_menu_membership_type" |
||||
|
name="Memberships" |
||||
|
parent="pos_membership_menu_root" |
||||
|
action="membership_in_pos.customer_membership_action" |
||||
|
sequence="5"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,90 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!--Creating records for the customer membership cards--> |
||||
|
<record id="membership_card_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Cards</field> |
||||
|
<field name="res_model">membership.card</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="o_view_nocontent_smiling_face"> |
||||
|
Generate Membership Card Types |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Customer membership cards view tree--> |
||||
|
<record id="membership_card_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">membership.card.view.tree</field> |
||||
|
<field name="model">membership.card</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Membership"> |
||||
|
<field name="membership_id"/> |
||||
|
<field name="customer_id"/> |
||||
|
<field name="expiry_date"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Customer membership cards view form--> |
||||
|
<record id="membership_card_view_form" model="ir.ui.view"> |
||||
|
<field name="name">membership.card.view.form</field> |
||||
|
<field name="model">membership.card</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Cards"> |
||||
|
<header> |
||||
|
<field name="state" widget="statusbar"/> |
||||
|
<field name="membership_code_button" invisible="1"/> |
||||
|
<button string="Confirm" class="btn-primary oe_highlight" type='object' |
||||
|
name="action_membership_confirm" states="draft"/> |
||||
|
<button string="Cancel" class="btn-primary oe_highlight" type='object' |
||||
|
name="action_membership_canceled" states="confirm"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="membership_id" |
||||
|
attrs="{'readonly': [('state','=','confirm')]}"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="validity"/> |
||||
|
<field name="discount" |
||||
|
attrs="{'readonly': [('state','=','confirm')]}"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="customer_id" |
||||
|
attrs="{'readonly': [('state','=','confirm')]}"/> |
||||
|
<field name="issue_date" |
||||
|
attrs="{'readonly': [('state','=','confirm')]}"/> |
||||
|
<field name="expiry_date" |
||||
|
attrs="{'readonly': [('state','=','confirm')]}"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="code" |
||||
|
attrs="{'readonly': [('state','=','confirm')]}"/> |
||||
|
<button type="object" name="generate_code" |
||||
|
string="Generate Code" class="btn-primary" |
||||
|
states="draft"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
<div class="oe_chatter"> |
||||
|
<field name="message_follower_ids" |
||||
|
options="{'open_attachments': True}"/> |
||||
|
<field name="message_ids"/> |
||||
|
</div> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<!--Membership menu --> |
||||
|
<menuitem id="pos_membership_menu_root" |
||||
|
name="Customer Membership" |
||||
|
parent="point_of_sale.menu_point_root" |
||||
|
sequence="3"> |
||||
|
</menuitem> |
||||
|
|
||||
|
<!--Membership card menu --> |
||||
|
<menuitem id="pos_membership_menu_membership_card" |
||||
|
name="Cards" |
||||
|
parent="pos_membership_menu_root" |
||||
|
action="membership_in_pos.membership_card_action" |
||||
|
sequence="10"/> |
||||
|
</odoo> |
@ -0,0 +1,38 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
res.config.settings.view.form.inherit.pos.membership |
||||
|
</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="inherit_id" |
||||
|
ref="point_of_sale.res_config_settings_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<!-- Adding the configuration to settings !--> |
||||
|
<xpath expr="//div[@id='iface_tipproduct']" position="inside"> |
||||
|
<div class="col-12 col-12 o_setting_box"> |
||||
|
<div class="o_setting_left_pane"> |
||||
|
<field name="is_pos_module_pos_membership" |
||||
|
attrs="{'readonly': [('pos_has_active_session','=', True)]}"/> |
||||
|
</div> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<label for="is_pos_module_pos_membership"/> |
||||
|
<div class="text-muted"> |
||||
|
Adds a button to set a membership |
||||
|
</div> |
||||
|
<div class="content-group mt16" |
||||
|
attrs="{'invisible':[('is_pos_module_pos_membership','=',False)]}"> |
||||
|
<div class="row"> |
||||
|
<label string="Membership Product" |
||||
|
for="pos_membership_product_id" |
||||
|
class="col-lg-3 o_light_label"/> |
||||
|
<field name="pos_membership_product_id" |
||||
|
attrs="{'required':[('is_pos_module_pos_membership', '=', True)]}"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |