Browse Source

May 26: [ADD] Initial commit 'salon_management'

pull/346/merge
Cybrosys Technologies 2 months ago
parent
commit
ba0d026242
  1. 49
      salon_management/README.rst
  2. 23
      salon_management/__init__.py
  3. 77
      salon_management/__manifest__.py
  4. 22
      salon_management/controllers/__init__.py
  5. 140
      salon_management/controllers/salon_management.py
  6. 10
      salon_management/data/product_template_data.xml
  7. 8
      salon_management/data/res_partner_data.xml
  8. 16
      salon_management/data/salon_chair_cron_action.xml
  9. 12
      salon_management/data/salon_chair_sequence.xml
  10. 28
      salon_management/data/salon_holiday_data.xml
  11. 8
      salon_management/data/salon_management_dashboard_tag.xml
  12. 41
      salon_management/data/salon_management_mail_template.xml
  13. 15
      salon_management/data/salon_order_sequence.xml
  14. 26
      salon_management/data/salon_stages_data.xml
  15. 10
      salon_management/data/salon_website_menu.xml
  16. 27
      salon_management/data/salon_working_hours_data.xml
  17. 7
      salon_management/doc/RELEASE_NOTES.md
  18. 33
      salon_management/models/__init__.py
  19. 64
      salon_management/models/res_config_settings.py
  20. 32
      salon_management/models/res_partner.py
  21. 31
      salon_management/models/res_users.py
  22. 118
      salon_management/models/salon_booking.py
  23. 89
      salon_management/models/salon_chair.py
  24. 55
      salon_management/models/salon_chair_user.py
  25. 31
      salon_management/models/salon_holiday.py
  26. 272
      salon_management/models/salon_order.py
  27. 59
      salon_management/models/salon_order_line.py
  28. 39
      salon_management/models/salon_service.py
  29. 34
      salon_management/models/salon_stage.py
  30. 33
      salon_management/models/salon_working_hours.py
  31. 36
      salon_management/security/ir.model.access.csv
  32. 24
      salon_management/security/salon_management_groups.xml
  33. BIN
      salon_management/static/description/assets/icons/capture (1).png
  34. BIN
      salon_management/static/description/assets/icons/check.png
  35. BIN
      salon_management/static/description/assets/icons/chevron.png
  36. BIN
      salon_management/static/description/assets/icons/cogs.png
  37. BIN
      salon_management/static/description/assets/icons/consultation.png
  38. BIN
      salon_management/static/description/assets/icons/ecom-black.png
  39. BIN
      salon_management/static/description/assets/icons/education-black.png
  40. BIN
      salon_management/static/description/assets/icons/hotel-black.png
  41. BIN
      salon_management/static/description/assets/icons/img.png
  42. BIN
      salon_management/static/description/assets/icons/license.png
  43. BIN
      salon_management/static/description/assets/icons/lifebuoy.png
  44. BIN
      salon_management/static/description/assets/icons/manufacturing-black.png
  45. BIN
      salon_management/static/description/assets/icons/photo-capture.png
  46. BIN
      salon_management/static/description/assets/icons/pos-black.png
  47. BIN
      salon_management/static/description/assets/icons/puzzle.png
  48. BIN
      salon_management/static/description/assets/icons/restaurant-black.png
  49. BIN
      salon_management/static/description/assets/icons/service-black.png
  50. BIN
      salon_management/static/description/assets/icons/trading-black.png
  51. BIN
      salon_management/static/description/assets/icons/training.png
  52. BIN
      salon_management/static/description/assets/icons/update.png
  53. BIN
      salon_management/static/description/assets/icons/user.png
  54. BIN
      salon_management/static/description/assets/icons/wrench.png
  55. BIN
      salon_management/static/description/assets/misc/Cybrosys R.png
  56. 33
      salon_management/static/description/assets/misc/email.svg
  57. 3
      salon_management/static/description/assets/misc/phone.svg
  58. 9
      salon_management/static/description/assets/misc/star (1) 2.svg
  59. 9
      salon_management/static/description/assets/misc/support (1) 1.svg
  60. 6
      salon_management/static/description/assets/misc/support-email.svg
  61. 17
      salon_management/static/description/assets/misc/tick-mark.svg
  62. 9
      salon_management/static/description/assets/misc/whatsapp 1.svg
  63. 33
      salon_management/static/description/assets/misc/whatsapp.svg
  64. BIN
      salon_management/static/description/assets/modules/1.png
  65. BIN
      salon_management/static/description/assets/modules/2.png
  66. BIN
      salon_management/static/description/assets/modules/3.png
  67. BIN
      salon_management/static/description/assets/modules/4.png
  68. BIN
      salon_management/static/description/assets/modules/5.png
  69. BIN
      salon_management/static/description/assets/modules/6.png
  70. BIN
      salon_management/static/description/assets/screenshots/hero.gif
  71. BIN
      salon_management/static/description/assets/screenshots/s.png
  72. BIN
      salon_management/static/description/assets/screenshots/s1.png
  73. BIN
      salon_management/static/description/assets/screenshots/s10.png
  74. BIN
      salon_management/static/description/assets/screenshots/s2.png
  75. BIN
      salon_management/static/description/assets/screenshots/s3.png
  76. BIN
      salon_management/static/description/assets/screenshots/s4.png
  77. BIN
      salon_management/static/description/assets/screenshots/s5.png
  78. BIN
      salon_management/static/description/assets/screenshots/s6.png
  79. BIN
      salon_management/static/description/assets/screenshots/s7.png
  80. BIN
      salon_management/static/description/assets/screenshots/s8.png
  81. BIN
      salon_management/static/description/assets/screenshots/s9.png
  82. BIN
      salon_management/static/description/assets/screenshots/s_1.png
  83. BIN
      salon_management/static/description/banner.jpg
  84. BIN
      salon_management/static/description/icon.png
  85. 920
      salon_management/static/description/index.html
  86. BIN
      salon_management/static/src/css/images/chair.png
  87. 213
      salon_management/static/src/css/salon_dashboard.css
  88. 46
      salon_management/static/src/css/salon_website.css
  89. 143
      salon_management/static/src/js/salon_dashboard.js
  90. 103
      salon_management/static/src/js/website_salon_booking.js
  91. 96
      salon_management/static/src/xml/salon_dashboard.xml
  92. 60
      salon_management/views/res_config_settings_views.xml
  93. 14
      salon_management/views/res_partner_views.xml
  94. 276
      salon_management/views/salon_booking_templates.xml
  95. 60
      salon_management/views/salon_booking_views.xml
  96. 62
      salon_management/views/salon_chair_views.xml
  97. 37
      salon_management/views/salon_management_menus.xml
  98. 269
      salon_management/views/salon_order_views.xml
  99. 39
      salon_management/views/salon_service_views.xml
  100. 43
      salon_management/views/salon_working_hours.xml

49
salon_management/README.rst

@ -0,0 +1,49 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Beauty Spa Management
=====================
This module to helps your customers to do the online booking for using the
service. This module integrates with other Odoo modules like accounting and
website.
Configuration
============
- www.odoo.com/documentation/18.0/setup/install.html
- Install our custom addon
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (AGPL V3).
(http://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
Developer: (V18) Abbas P, (V17) Mohammed Dilshad Tk, 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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
salon_management/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from . import controllers
from . import models

77
salon_management/__manifest__.py

@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
{
'name': 'Beauty Spa Management',
'version': '18.0.1.0.0',
"category": "Services",
'summary': 'Beauty Parlour Management with Online Booking System',
'description': 'This module to helps your customers to do the online '
'booking for using the service. This module integrates with '
'other Odoo modules like accounting and website.',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['account', 'base_setup', 'mail', 'website', 'contacts'],
'data': [
'security/salon_management_groups.xml',
'security/ir.model.access.csv',
'data/salon_website_menu.xml',
'data/salon_chair_cron_action.xml',
'data/salon_management_mail_template.xml',
'data/salon_chair_sequence.xml',
'data/salon_order_sequence.xml',
'data/salon_management_dashboard_tag.xml',
'views/res_config_settings_views.xml',
'views/res_partner_views.xml',
'views/salon_booking_templates.xml',
'views/salon_chair_views.xml',
'views/salon_working_hours.xml',
'views/salon_service_views.xml',
'views/salon_booking_views.xml',
'views/salon_order_views.xml',
'views/salon_management_menus.xml',
],
'demo': [
'data/product_template_data.xml',
'data/res_partner_data.xml',
'data/salon_holiday_data.xml',
'data/salon_stages_data.xml',
'data/salon_working_hours_data.xml',
],
'assets': {
'web.assets_backend': [
'salon_management/static/src/css/salon_dashboard.css',
'salon_management/static/src/xml/salon_dashboard.xml',
'salon_management/static/src/js/salon_dashboard.js',
],
'web.assets_frontend': [
'salon_management/static/src/css/salon_website.css',
'salon_management/static/src/js/website_salon_booking.js',
],
},
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': True,
}

22
salon_management/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from . import salon_management

140
salon_management/controllers/salon_management.py

@ -0,0 +1,140 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
import json
import pytz
from datetime import datetime, time
from odoo import fields, http
from odoo.http import request
class SalonBookingWeb(http.Controller):
"""Route to do salon website operations."""
@http.route(route='/page/salon_details', type='json', auth='public',
website=True, csrf=False)
def salon_details(self, name, date, salon_time, phone, email, chair,
service_list):
dates_time = date + " " + salon_time + ":00"
date_and_time = (pytz.timezone(request.env.user.tz).localize(
datetime.strptime(str(dates_time), '%Y-%m-%d %H:%M:%S')).
astimezone(pytz.UTC).replace(tzinfo=None))
a = request.env['salon.booking'].create({
'name': name,
'phone': phone,
'time': date_and_time,
'email': email,
'chair_id': chair,
'service_ids': [(6, 0, [salon.id for salon in request.env
['salon.service'].search([('id', 'in',
service_list)])])],
})
return json.dumps({'result': True})
@http.route('/page/salon_check_date', type='json', auth="public",
website=True)
def salon_check(self, **kwargs):
year, month, day = map(int, kwargs['check_date'].split('-'))
date_start = pytz.timezone(request.env.user.tz).localize(
datetime(year, month, day, hour=0, minute=0, second=0)).astimezone(
pytz.UTC).replace(tzinfo=None)
date_end = (pytz.timezone(request.env.user.tz).
localize(datetime(year, month, day, hour=23, minute=59,
second=59)).astimezone(pytz.UTC).
replace(tzinfo=None))
order_obj = request.env['salon.order'].search(
[('chair_id.active_booking_chairs', '=', True),
('stage_id', 'in', [1, 2, 3]), ('start_time', '>=', date_start),
('start_time', '<=', date_end)])
order_details = {}
for order in order_obj:
data = {
'number': order.id,
'start_time_only': fields.Datetime.to_string(pytz.UTC.localize(
order.start_time).astimezone(pytz.timezone(
request.env.user.tz)).replace(tzinfo=None))[11:16],
'end_time_only': fields.Datetime.to_string(pytz.UTC.localize(
order.end_time).astimezone(pytz.timezone(
request.env.user.tz)).replace(tzinfo=None))[11:16],
}
if order.chair_id.id not in order_details:
order_details[order.chair_id.id] = {
'name': order.chair_id.name,
'orders': [data],
}
else:
order_details[order.chair_id.id]['orders'].append(data)
return order_details
@http.route('/page/salon_management/salon_booking_thank_you',
type='http', auth="public", website=True, csrf=False)
def return_thank_you(self, **post):
return request.render('salon_management.salon_booking_thank_you', {})
@http.route('/salon_booking_form', type='http',
auth="public", website=True)
def chair_info(self, **post):
"""Route function that render while clicking Booking menu from website.
Returns data to booking website"""
salon_service_obj = request.env['salon.service'].sudo().search([])
salon_working_hours_obj = request.env['salon.working.hours'].sudo().search([])
salon_holiday_obj = request.env['salon.holiday'].sudo().search(
[('holiday', '=', True)])
date_check = datetime.today().date()
date_start = (pytz.timezone(request.env.user.tz).localize(
datetime.combine(date_check, time(hour=0, minute=0, second=0))).
astimezone(pytz.UTC).replace(tzinfo=None))
date_end = (pytz.timezone(request.env.user.tz).localize(
datetime.combine(date_check, time(hour=23, minute=59, second=59))).
astimezone(pytz.UTC).replace(tzinfo=None))
# chair_obj =
order_obj = request.env['salon.order'].sudo().search(
[('chair_id.active_booking_chairs', '=', True),
('stage_id', 'in', [1, 2, 3]), ('start_time', '>=', date_start),
('start_time', '<=', date_end)])
return request.render(
'salon_management.salon_booking_form', {
'chair_details': request.env['salon.chair'].sudo().search([]),
'order_details': order_obj,
'salon_services': salon_service_obj,
'date_search': date_check,
'holiday': salon_holiday_obj,
'working_time': salon_working_hours_obj}
)
class SalonOrders(http.Controller):
"""Returns the chairs for dashboard"""
@http.route(route='/salon/chairs', type="json", auth="public")
def get_salon_chair(self, products_per_slide=3):
"""Function to returns the chairs for dashboard"""
chairs = []
number_of_orders = {}
for chair in request.env['salon.chair'].sudo().search([]):
number_of_orders.update({
chair.id: len(request.env['salon.order'].search(
[("chair_id", "=", chair.id),
("stage_id", "in", [2, 3])]))})
chairs.append({'name': chair.name,
'id': chair.id,
'orders': number_of_orders[chair.id]})
return chairs

10
salon_management/data/product_template_data.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Product template demo data-->
<record id="salon_service_product_01" model="product.template">
<field name="name">Salon Service</field>
<field name="type">service</field>
</record>
</data>
</odoo>

8
salon_management/data/res_partner_data.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Res partner demo data-->
<record id="res_partner_01" model="res.partner">
<field name="name">Salon Default Customer</field>
<field name="partner_salon">5</field>
</record>
</odoo>

16
salon_management/data/salon_chair_cron_action.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Salon chair cron action -->
<record id="ir_cron_collections_today" forcecreate="True" model="ir.cron">
<field name="name">Collection Today</field>
<field eval="True" name="active"/>
<field name="model_id" ref="salon_management.model_salon_chair"/>
<field name="state">code</field>
<field name="code">model.collection_today_updater()</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
</record>
</data>
</odoo>

12
salon_management/data/salon_chair_sequence.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Salon chair sequence-->
<record id="salon_chair_sequence" model="ir.sequence">
<field name="name">Chair Sequence</field>
<field name="code">salon_chair_sequence</field>
<field name="prefix">CHAIR-</field>
<field name="number_increment">1</field>
</record>
</data>
</odoo>

28
salon_management/data/salon_holiday_data.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!-- Salon holiday demo datas-->
<record id="salon_holiday_01" model="salon.holiday">
<field name="name">Sunday</field>
<field name="holiday">True</field>
</record>
<record id="salon_holiday_02" model="salon.holiday">
<field name="name">Monday</field>
</record>
<record id="salon_holiday_03" model="salon.holiday">
<field name="name">Tuesday</field>
</record>
<record id="salon_holiday_04" model="salon.holiday">
<field name="name">Wednesday</field>
</record>
<record id="salon_holiday_05" model="salon.holiday">
<field name="name">Thursday</field>
</record>
<record id="salon_holiday_06" model="salon.holiday">
<field name="name">Friday</field>
</record>
<record id="salon_holiday_07" model="salon.holiday">
<field name="name">Saturday</field>
</record>
</data>
</odoo>

8
salon_management/data/salon_management_dashboard_tag.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Salon management dashboard client action-->
<record id="salon_management_client_action" model="ir.actions.client">
<field name="name">Salon Management</field>
<field name="tag">salon_dashboard</field>
</record>
</odoo>

41
salon_management/data/salon_management_mail_template.xml

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Salon approved mail template-->
<record id="mail_template_salon_approved" model="mail.template">
<field name="name">Salon Approved E-mail</field>
<field name="email_from">{{ object.company_id and object.company_id.email or '' }}</field>
<field name="subject">Congrats {{ object.name }}</field>
<field name="email_to">{{ object.email }}</field>
<field name="model_id" ref="salon_management.model_salon_booking" />
<field name="auto_delete" eval="True" />
<field name="body_html" type="html">
<div>
<p>Dear <t t-out="object.name" />,<br />
Thank you for choosing <t t-out="object.company_id.name" />, your booking was registered!<br /><br /></p>
Regards,<br />
<t t-out="object.company_id.name" />
</div>
</field>
</record>
<!-- Salon rejecting mail template-->
<record id="mail_template_salon_rejected" model="mail.template">
<field name="name">Salon Rejected E-mail</field>
<field name="email_from">{{ object.company_id and object.company_id.email or '' }}</field>
<field name="subject">We are Sorry {{ object.name }}</field>
<field name="email_to">{{ object.email }}</field>
<field name="model_id" ref="salon_management.model_salon_booking" />
<field name="auto_delete" eval="True" />
<field name="body_html" type="html">
<div>
<p>Dear <t t-out="object.name" />,<br />
Thank you for choosing <t t-out="object.company_id.name" />, but your booking was rejected!<br />
There is no seats available for the time you chosen.<br />
Better luck next time.<br /><br /></p>
Regards,<br />
<t t-out="object.company_id.name" />
</div>
</field>
</record>
</data>
</odoo>

15
salon_management/data/salon_order_sequence.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Salon order sequence-->
<record id="salon_order_sequence" model="ir.sequence">
<field name="name">Salon Order Sequence</field>
<field name="code">salon.order.sequence</field>
<field name="prefix">SALON/%(range_year)s/</field>
<field eval="1" name="number_next" />
<field eval="1" name="number_increment" />
<field eval="True" name="use_date_range" />
<field name="padding">4</field>
</record>
</data>
</odoo>

26
salon_management/data/salon_stages_data.xml

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<!-- Salon stage demo data-->
<record id="salon_stage_00" model="salon.stage">
<field name="name">Draft</field>
<field name="sequence">1</field>
</record>
<record id="salon_stage_01" model="salon.stage">
<field name="name">Open</field>
<field name="sequence">2</field>
</record>
<record id="salon_stage_02" model="salon.stage">
<field name="name">Invoiced</field>
<field name="sequence">3</field>
</record>
<record id="salon_stage_03" model="salon.stage">
<field name="name">Closed</field>
<field name="sequence">4</field>
</record>
<record id="salon_stage_04" model="salon.stage">
<field name="name">Cancelled</field>
<field name="sequence">5</field>
</record>
</data>
</odoo>

10
salon_management/data/salon_website_menu.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Salon booking website menu-->
<record id="website_menu_salon_booking" model="website.menu">
<field name="name">Bookings</field>
<field name="url">/salon_booking_form</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">80</field>
</record>
</odoo>

27
salon_management/data/salon_working_hours_data.xml

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!-- Salon working hours demo data-->
<record id="salon_working_01" model="salon.working.hours">
<field name="name">Sunday</field>
</record>
<record id="salon_working_02" model="salon.working.hours">
<field name="name">Monday</field>
</record>
<record id="salon_working_03" model="salon.working.hours">
<field name="name">Tuesday</field>
</record>
<record id="salon_working_04" model="salon.working.hours">
<field name="name">Wednesday</field>
</record>
<record id="salon_working_05" model="salon.working.hours">
<field name="name">Thursday</field>
</record>
<record id="salon_working_06" model="salon.working.hours">
<field name="name">Friday</field>
</record>
<record id="salon_working_07" model="salon.working.hours">
<field name="name">Saturday</field>
</record>
</data>
</odoo>

7
salon_management/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <salon_management>
#### 01.02.2025
#### Version 18.0.1.0.0
#### ADD
- Initial commit for Beauty Spa Management

33
salon_management/models/__init__.py

@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from . import res_config_settings
from . import res_partner
from . import res_users
from . import salon_chair
from . import salon_holiday
from . import salon_service
from . import salon_working_hours
from . import salon_booking
from . import salon_chair_user
from . import salon_order
from . import salon_order_line
from . import salon_stage

64
salon_management/models/res_config_settings.py

@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
"""Inherits 'res.config.settings' to add salon records"""
_inherit = 'res.config.settings'
@api.model
def booking_chairs(self):
"""Returns active chairs for booking"""
return self.env['salon.chair'].search(
[('active_booking_chairs', '=', True)])
@api.model
def return_holidays(self):
"""Returns holiday"""
return self.env['salon.holiday'].search([('holiday', '=', True)])
salon_booking_chair_ids = fields.Many2many(
'salon.chair', string="Booking Chairs", default=booking_chairs,
help="Booking chairs")
salon_holiday_ids = fields.Many2many('salon.holiday', string="Holidays",
default=return_holidays,
help="Holidays of salon")
def execute(self):
"""Update boolean fields of holiday and chair"""
book_chair = []
for chairs in self.salon_booking_chair_ids:
book_chair.append(chairs.id)
for chair in self.env['salon.chair'].search([]):
if chair.id in book_chair:
chair.active_booking_chairs = True
else:
chair.active_booking_chairs = False
holiday = []
for days in self.salon_holiday_ids:
holiday.append(days.id)
for records in self.env['salon.holiday'].search([]):
if records.id in holiday:
records.holiday = True
else:
records.holiday = False

32
salon_management/models/res_partner.py

@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class ResPartner(models.Model):
"""Inherits 'res partner' to add field to know whether partner is a salon
partner"""
_inherit = 'res.partner'
partner_salon = fields.Boolean(string="Is a Salon Partner",
help="Field to check is partner a salon "
"partner")

31
salon_management/models/res_users.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class ResUsers(models.Model):
"""Inherits model res_users to add a field"""
_inherit = 'res.users'
user_salon_active = fields.Boolean(
string="Active Salon Users", default=False, help="To check whether user"
" is salon user")

118
salon_management/models/salon_booking.py

@ -0,0 +1,118 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
import pytz
from odoo import fields, models
from datetime import datetime, time
class SalonBooking(models.Model):
"""Creates 'salon booking' to create salon bookings"""
_name = 'salon.booking'
_description = 'Salon Booking'
name = fields.Char(string="Name", required=True, help="Name of customer")
state = fields.Selection(string="State", default="draft",
selection=[('draft', 'Draft'),
('approved', 'Approved'),
('rejected', 'Rejected')],
help="State of the booking")
time = fields.Datetime(string="Date", required=True,
help="Start time of the order")
phone = fields.Char(string="Phone", help="Phone number of customer.")
email = fields.Char(string="E-Mail", help="Email of employee")
service_ids = fields.Many2many(comodel_name='salon.service',
string="Services",
help="Salon services")
chair_id = fields.Many2one('salon.chair', string="Chair",
required=True, help="Select the chair for "
"booking")
company_id = fields.Many2one(comodel_name='res.company', string='Company',
default=lambda self: self.env.company,
help="Default company")
filtered_order_ids = fields.Many2many(comodel_name='salon.order',
string="Salon Orders",
compute="_compute_filtered_order_ids",
help="Orders for each salon")
def _compute_filtered_order_ids(self):
"""Computes the filtered_order_ids field"""
if self.time:
date_only = fields.Date.to_date(fields.Datetime.to_string(
pytz.UTC.localize(self.time).astimezone(pytz.timezone(
self.env.user.tz)))[0:10])
else:
date_only = fields.Date.context_today(self)
date_start = (pytz.timezone(self.env.user.tz).localize(
datetime.combine(date_only, time(hour=0, minute=0, second=0)))
.astimezone(pytz.UTC).replace(tzinfo=None))
date_end = (pytz.timezone(self.env.user.tz).localize(
datetime.combine(date_only, time(hour=23, minute=59, second=59)))
.astimezone(pytz.UTC).replace(tzinfo=None))
salon_orders = self.env['salon.order'].search(
[('chair_id', '=', self.chair_id.id),
('start_time', '>=', date_start),
('start_time', '<=', date_end)])
self.filtered_order_ids = [(6, 0, [x.id for x in salon_orders])]
def action_approve_booking(self):
"""Approve the booking for salon services"""
for service in self.service_ids:
self.env['salon.order.line'].create({
'service_id': service.id,
'time_taken': service.time_taken,
'price': service.price,
'price_subtotal': service.price,
'salon_order_id': self.env['salon.order'].create(
{'customer_name': self.name,
'chair_id': self.chair_id.id,
'start_time': self.time,
'date': fields.Datetime.now(),
'stage_id': 1,
'booking_identifier': True}).id,
})
self.env['mail.template'].browse(self.env.ref(
'salon_management.mail_template_salon_approved').id).send_mail(
self.id, force_send=True)
self.state = "approved"
def action_reject_booking(self):
"""Reject booking for salon services"""
self.env['mail.template'].browse(self.env.ref(
'salon_management.mail_template_salon_rejected')
.id).send_mail(self.id,
force_send=True)
self.state = "rejected"
def get_booking_count(self):
"""Gets the count of salon bookings, recent works, salon orders, salon
clients.
Returns: Count of each one."""
return {
'bookings': self.env['salon.booking'].search_count(
[('state', '=', 'approved')]),
'sales': self.env['salon.order'].search_count(
[('stage_id', 'in', [3, 4])]),
'orders': self.env['salon.order'].search_count([]),
'clients': self.env['res.partner'].search_count(
[('partner_salon', '=', True)]),
'chairs': self.env['salon.chair'].search([])
}

89
salon_management/models/salon_chair.py

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from datetime import date
from odoo import api, fields, models, _
class SalonChair(models.Model):
"""Class to create 'salon.chair' to manage chairs in salon"""
_name = 'salon.chair'
_description = 'Salon Chair'
name = fields.Char(string="Chair", required=True, readonly=True,
default="New", help="Name for chair")
number_of_orders = fields.Integer(string="No.of Orders", help="Number of ")
collection_today = fields.Float(string="Today's Collection",
help="Today's collection")
user_id = fields.Many2one(
'res.users', string="User", readonly=True,
help="You can select the user from the Users Tab"
"Last user from the Users Tab will be selected "
"as the Current User.")
date = fields.Datetime(string="Date", help="Chair available date", required=True)
user_line = fields.One2many('salon.chair.user', 'salon_chair_id',
string="Users", help="Salon chair users")
total_time_taken_chair = fields.Float(string="Time Reserved(Hrs)",
help="Reserved time")
active_booking_chairs = fields.Boolean(string="Active booking chairs",
help="Check is chair a active chair")
chair_created_user = fields.Integer(string="Salon Chair Created User",
default=lambda self: self._uid,
help="Chair created user")
@api.model_create_multi
def create(self, values):
"""Add sequence for chair, start date and end date on creating record"""
for vals in values:
if vals.get('name', _('New')) == _('New'):
vals['name'] = self.env['ir.sequence'].next_by_code(
'salon_chair_sequence')
if 'user_line' in values[0].keys():
if vals['user_line']:
date_changer = []
for elements in vals['user_line']:
date_changer.append(elements[2]['start_date'])
number = 0
for elements in vals['user_line']:
number += 1
if len(vals['user_line']) == number:
break
elements[2]['end_date'] = date_changer[number]
vals['user_id'] = vals['user_line'][len(
(vals['user_line'])) - 1][2]['user_id']
vals['date'] = vals['user_line'][len(
(vals['user_line'])) - 1][2]['start_date']
return super(SalonChair, self).create(vals)
def collection_today_updater(self):
""" Function to update the collection on the day for each chair """
salon_chair = self.env['salon.chair']
for values in self.search([]):
chair_obj = salon_chair.browse(values.ids)
invoiced_records = chair_obj.env['salon.order'].search(
[('stage_id', 'in', [3, 4]), ('chair_id', '=', chair_obj.id)])
total = 0
for rows in invoiced_records:
invoiced_date = str(rows.date)
invoiced_date = invoiced_date[0:10]
if invoiced_date == str(date.today()):
total = total + rows.price_subtotal
chair_obj.collection_today = total

55
salon_management/models/salon_chair_user.py

@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, fields, models
class SalonChairUser(models.Model):
"""Model to store chair users """
_name = 'salon.chair.user'
_description = 'Salon Chair User'
read_only_checker = fields.Boolean(string="Checker", default=False,
help="To check readonly")
user_id = fields.Many2one(comodel_name='res.users', string="User",
required=True, help="Users")
start_date = fields.Datetime(
string="Start Date", default=fields.Datetime.now, required=True,
help="Staring date")
end_date = fields.Datetime(string="End Date", default=False, help="Ending "
"date")
salon_chair_id = fields.Many2one(
'salon.chair', string="Chair", required=True,
ondelete='cascade', index=True, copy=False, help="Select salon chairs")
@api.model
def create(self, val):
"""Update records on adding new chair user"""
all_active_users = []
for chair in self.env['salon.chair'].search([]):
if chair.user_id:
all_active_users.append(chair.user_id.id)
chair.user_id.write({'user_salon_active': True})
for user in self.env['res.users'].search(
[('id', 'not in', all_active_users)]):
user.write({'user_salon_active': False})
val['read_only_checker'] = True
return super(SalonChairUser, self).create(val)

31
salon_management/models/salon_holiday.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SalonHoliday(models.Model):
"""Creates 'salon.holiday' to store holidays of salon"""
_name = 'salon.holiday'
_description = 'Salon Holiday'
name = fields.Char(string="Name", help="Name of holiday")
holiday = fields.Boolean(string="Holiday", help="To check holiday")

272
salon_management/models/salon_order.py

@ -0,0 +1,272 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from datetime import date, datetime, timedelta
from odoo import api, fields, models
from odoo.tools.translate import _
from odoo.exceptions import UserError, ValidationError
class SalonOrder(models.Model):
"""Model to create salon orders"""
_name = 'salon.order'
_description = 'Salon Order'
name = fields.Char(string='Salon', required=True, copy=False, readonly=True,
default='Draft Salon Order', help="Name of salon order")
start_time = fields.Datetime(
string="Start time", default=fields.Datetime.now, required=True,
help="Start time of the order")
end_time = fields.Datetime(string="End time", help="End time of the order")
date = fields.Datetime(string="Date", required=True,
default=fields.Datetime.now, help="Registering date")
color = fields.Integer(string="Color", default=6,
help="Color for the order")
partner_id = fields.Many2one(
'res.partner', string="Customer", required=False,
help="If the customer is a regular customer, then you can add the"
" customer in your database")
customer_name = fields.Char(string="Name", required=True,
help="Name of salon customer")
currency_id = fields.Many2one(
'res.currency', string='Currency', required=True,
default=lambda self: self.env.user.company_id.currency_id.id,
help="Currency used in the order")
chair_id = fields.Many2one('salon.chair', string="Chair",
required=True, help="Chair for the current "
"order")
price_subtotal = fields.Monetary(string='Total', readonly=True, store=True,
compute='_compute_price_subtotal',
help="Total price of order")
time_taken_total = fields.Float(string='Total time',
help='Total time taken')
note = fields.Text(string='Terms and conditions',
help="Note for current order")
order_line_ids = fields.One2many(comodel_name='salon.order.line',
inverse_name='salon_order_id',
string="Order Lines", copy=True,
help='Salon order line for add '
'list of services', required=True)
stage_id = fields.Many2one(comodel_name='salon.stage', string="State",
group_expand='_read_group_stage_ids', default=1,
copy=False, help="state for the salon order(user"
" can add dynamic state from"
" the kanban view)")
inv_stage_identifier = fields.Boolean(string="Stage Identifier",
help="Field to detect stage")
validation_controller = fields.Boolean(
string="Validation controller", default=False,
help="Start time of the order")
booking_identifier = fields.Boolean(string="Booking Identifier",
help="Field to identify booking")
user_id = fields.Many2one('res.users', string="Chair User")
salon_order_created_user = fields.Integer(string="Salon Order Created User",
default=lambda self: self._uid,
help="The user whom the salon"
" order created.")
count = fields.Integer(string='Delivery Orders', compute='_compute_count',
help="The count of the delivery")
@api.depends('order_line_ids.price_subtotal')
def _compute_price_subtotal(self):
"""Compute the subtotal price of order line"""
amount_untaxed = 0.0
total_time_taken = 0.0
for order in self:
for line in order.order_line_ids:
amount_untaxed += line.price_subtotal
total_time_taken += line.time_taken
self.price_subtotal = amount_untaxed
time_takes = total_time_taken
hours = int(time_takes)
minutes = (time_takes - hours) * 60
start_time_store = datetime.strptime(
str(self.start_time).split(".")[0], "%Y-%m-%d %H:%M:%S")
self.write({'end_time': start_time_store + timedelta(
hours=hours, minutes=minutes),
'time_taken_total': total_time_taken})
def _compute_count(self):
"""Compute invoice count of salon orders"""
for orders in self:
orders.count = self.env['account.move'].search_count(
[('invoice_origin', '=', self.name)])
def action_view_invoice_salon(self):
"""Function to open invoice for the salon order"""
return {'name': 'Invoices',
'domain': [('invoice_origin', '=', self.name)],
'res_model': 'account.move',
'view_id': False,
'view_mode': 'list,form',
'type': 'ir.actions.act_window'}
@api.model
def _read_group_stage_ids(self, stages, domain):
"""Return the stages to stage_ids"""
return self.env['salon.stage'].search([])
def write(self, values):
""" Manage drag and drop in salon order kanban view """
if 'stage_id' in values.keys():
if self.stage_id.id == 3:
if values['stage_id'] != 4:
raise ValidationError(_("You can't perform that move!"))
else:
time_taken_chair = self.chair_id.total_time_taken_chair
self.chair_id.total_time_taken_chair = (
time_taken_chair - self.time_taken_total)
if self.stage_id.id == 4:
raise ValidationError(
_("You can't move a salon order from Closed stage!"))
if self.stage_id.id == 5:
raise ValidationError(
_("You can't move a salon order from Cancel stage!"))
if self.stage_id.id == 1:
if values['stage_id'] not in [2, 5]:
raise ValidationError(_("You can't perform that move!"))
if self.stage_id.id == 2:
if values['stage_id'] == 5:
time_taken_chair = self.chair_id.total_time_taken_chair
self.chair_id.total_time_taken_chair = (
time_taken_chair - self.time_taken_total)
elif values['stage_id'] == 1 or values['stage_id'] == 4:
raise ValidationError(_("You can't perform that move!"))
elif values['stage_id'] == 3 and not self.inv_stage_identifier:
self.action_create_invoice()
if 'stage_id' in values.keys() and self.name == "Draft Salon Order":
if values['stage_id'] == 2:
self.action_validate()
self.action_confirm()
self.update_number_of_orders()
return super(SalonOrder, self).write(values)
def action_confirm(self):
"""Confirm function of salon order"""
sequence_code = 'salon.order.sequence'
order_date = str(self.date)
order_date = order_date[0:10]
self.name = self.env['ir.sequence'].with_context(
ir_sequence_date=order_date).next_by_code(sequence_code)
if self.partner_id:
self.partner_id.partner_salon = True
self.stage_id = 2
self.update_number_of_orders()
self.chair_id.total_time_taken_chair += self.time_taken_total
self.user_id = self.chair_id.user_id
def action_validate(self):
""" Validate function of salon order"""
self.validation_controller = True
self.update_number_of_orders()
def action_close(self):
"""Close function for salon order"""
self.stage_id = 4
self.update_number_of_orders()
def action_cancel(self):
"""Function to cancel the salon order"""
self.stage_id = 5
self.update_number_of_orders()
def action_update_total(self):
"""Update total amount in salon order"""
for order in self:
amount_untaxed = 0.0
for line in order.order_line_ids:
amount_untaxed += line.price_subtotal
order.price_subtotal = amount_untaxed
@api.onchange('chair_id')
def _onchange_chair_id(self):
"""Onchange function of chair_id field"""
if 'active_id' in self._context.keys():
self.chair_id = self._context['active_id']
def action_create_invoice(self):
"""Function to create invoice"""
if self.partner_id:
supplier = self.partner_id
else:
supplier = self.partner_id.search(
[("name", "=", "Salon Default Customer")])
lines = []
product_id = self.env['product.product'].search(
[("name", "=", "Salon Service")])
for records in self.order_line_ids:
if product_id.property_account_income_id.id:
income_account = product_id.property_account_income_id.id
elif product_id.categ_id.property_account_income_categ_id.id:
income_account = product_id.categ_id. \
property_account_income_categ_id.id
else:
raise UserError(
_("Please define income account for this product: "
"'%s' (id:%d).") % (product_id.name, product_id.id))
value = (0, 0, {
'name': records.service_id.name,
'account_id': income_account,
'price_unit': records.price,
'quantity': 1,
'product_id': product_id.id,
})
lines.append(value)
result = {
'name': self.env.ref('account.action_move_out_invoice_type',
raise_if_not_found=False).name,
'type': 'ir.actions.act_window',
'views': [[False, 'form']],
'target': 'current',
'res_id': self.env['account.move'].create({
'move_type': 'out_invoice',
'partner_id': supplier.id,
'invoice_user_id': self.env.user.id,
'invoice_origin': self.name,
'invoice_line_ids': lines}).id,
'res_model': 'account.move',
}
self.inv_stage_identifier = True
self.stage_id = 3
invoiced_records = self.env['salon.order'].search(
[('stage_id', 'in', [3, 4]), ('chair_id', '=', self.chair_id.id)])
total = 0
for rows in invoiced_records:
invoiced_date = str(rows.date)
invoiced_date = invoiced_date[0:10]
if invoiced_date == str(date.today()):
total = total + rows.price_subtotal
self.chair_id.collection_today = total
self.update_number_of_orders()
return result
def unlink(self):
""" Unlink/delete salon order """
for order in self:
if order.stage_id.id == 3 or order.stage_id.id == 4:
raise UserError(_("You can't delete an invoiced salon order!"))
return super(SalonOrder, self).unlink()
def update_number_of_orders(self):
""" Function to update the number of active orders for the chair."""
self.chair_id.number_of_orders = len(self.env['salon.order'].search([
]).filtered(lambda order: order.chair_id.id == self.chair_id.id
and order.stage_id in [2, 3]))

59
salon_management/models/salon_order_line.py

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, fields, models
class SalonOrderLine(models.Model):
"""Creates salon_order_line model to store salon orders"""
_name = 'salon.order.line'
_description = 'Salon Order Lines'
service_id = fields.Many2one('salon.service', string="Service",
help="Select salon services")
currency_id = fields.Many2one(
'res.currency', string='Currency', required=True,
default=lambda self: self.env.user.company_id.currency_id.id,
help="Default currency")
price = fields.Monetary(string="Price", help="Price of service")
salon_order_id = fields.Many2one(
'salon.order', string="Salon Order", required=True, ondelete='cascade',
index=True, copy=False, help="select Salon order")
price_subtotal = fields.Monetary(string='Subtotal', help="Total price")
time_taken = fields.Float(string='Time Taken', help="Time taken for "
"service")
@api.onchange('service_id')
def _onchange_service_id(self):
"""Onchange function of service_id field"""
self.price = self.service_id.price
self.price_subtotal = self.service_id.price
self.time_taken = self.service_id.time_taken
@api.onchange('price')
def _onchange_price(self):
"""Onchange function of price field"""
self.price_subtotal = self.price
@api.onchange('price_subtotal')
def _onchange_price_subtotal(self):
"""Onchange function of price_subtotal field"""
self.price = self.price_subtotal

39
salon_management/models/salon_service.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SalonService(models.Model):
"""Creates 'salon.service' to store salon services"""
_name = 'salon.service'
_description = 'Salon Service'
name = fields.Char(string="Name", required=True, help="Name of service")
currency_id = fields.Many2one(comodel_name='res.currency',
string='Currency', required=True,
default=lambda self: self.env
.user.company_id.currency_id.id,
help="Currency for the service")
price = fields.Monetary(string="Price", help="Amount for the service",
required=True)
time_taken = fields.Float(string="Time", help="Approximate time required "
"for this service in Hours")

34
salon_management/models/salon_stage.py

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SalonStage(models.Model):
"""Creates 'salon_stage' to creates new stages dynamically"""
_name = 'salon.stage'
_order = 'sequence'
_description = 'Salon Stage'
name = fields.Char(string="Name", required=True, translate=True,
help="Name of the stages")
sequence = fields.Integer('Sequence', default=1,
help="Used to order stages. Lower is first.")

33
salon_management/models/salon_working_hours.py

@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abbas P (odoo@cybrosys.com)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SalonWorkingHours(models.Model):
"""'Salon working hours' to store working hours of salon"""
_name = 'salon.working.hours'
_description = 'Salon Working Hours'
name = fields.Char(string="Name", help="Name of working hours", required=True)
from_time = fields.Float(string="Starting Time", help="Starting time of "
"salon")
to_time = fields.Float(string="Closing Time", help="Salon work ending time")

36
salon_management/security/ir.model.access.csv

@ -0,0 +1,36 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_salon_order_salon_user,salon.order,model_salon_order,salon_management.group_salon_user,1,1,1,0
access_salon_order_salon_portal,salon.order,model_salon_order,base.group_portal,1,1,0,0
access_salon_order_line_salon_user,salon.order.line,model_salon_order_line,salon_management.group_salon_user,1,1,1,0
access_salon_stage_salon_user,salon.stage,model_salon_stage,salon_management.group_salon_user,1,1,1,0
access_salon_chair_salon_user,salon.chair,model_salon_chair,salon_management.group_salon_user,1,1,0,0
access_salon_chair_salon_portal,salon.chair,model_salon_chair,base.group_portal,1,1,0,0
access_salon_service_salon_user,salon.service,model_salon_service,salon_management.group_salon_user,1,1,0,0
access_salon_service_salon_portal,salon.service,model_salon_service,base.group_portal,1,1,0,0
access_salon_order_manager,salon.order,model_salon_order,salon_management.group_salon_manager,1,1,1,1
access_salon_order_line_manager,salon.order.line,model_salon_order_line,salon_management.group_salon_manager,1,1,1,1
access_salon_stage_manager,salon.stage,model_salon_stage,salon_management.group_salon_manager,1,1,1,1
access_salon_chair_manager,salon.chair,model_salon_chair,salon_management.group_salon_manager,1,1,1,1
access_salon_service_manager,salon.service,model_salon_service,salon_management.group_salon_manager,1,1,1,1
access_salon_booking_manager,salon.booking,model_salon_booking,salon_management.group_salon_manager,1,1,1,1
access_salon_booking_portal,salon.booking,model_salon_booking,base.group_portal,1,1,1,0
access_salon_working_hours_manager,salon.working.hours,model_salon_working_hours,salon_management.group_salon_manager,1,1,1,1
access_salon_holiday_manager,salon.holiday,model_salon_holiday,salon_management.group_salon_manager,1,1,1,1
access_res_partner_manager,res.partner,model_res_partner,salon_management.group_salon_manager,1,1,1,1
access_res_users_manager,res.users,model_res_users,salon_management.group_salon_manager,1,1,1,1
access_salon_chair_user_manager,salon.chair.user,model_salon_chair_user,salon_management.group_salon_manager,1,1,1,1
access_salon_order_public,salon.order,model_salon_order,base.group_public,1,0,0,0
access_salon_order_line_public,salon.order.line,model_salon_order_line,base.group_public,1,0,0,0
access_salon_stage_public,salon.stage,model_salon_stage,base.group_public,1,0,0,0
access_salon_chair_public,salon.chair,model_salon_chair,base.group_public,1,0,0,0
access_salon_service_public,salon.service,model_salon_service,base.group_public,1,0,0,0
access_salon_booking_public,salon.booking,model_salon_booking,base.group_public,1,1,1,0
access_salon_working_hours_public,salon.working.hours,model_salon_working_hours,base.group_public,1,0,0,0
access_salon_working_hours_portal,salon.working.hours,model_salon_working_hours,base.group_portal,1,1,0,0
access_salon_holiday_public,salon.holiday,model_salon_holiday,base.group_public,1,0,0,0
access_salon_holiday_portal,salon.holiday,model_salon_holiday,base.group_portal,1,1,0,0
access_res_partner_public,res.partner,model_res_partner,base.group_public,1,0,0,0
access_res_users_public,res.users,model_res_users,base.group_public,1,0,0,0
access_salon_chair_user_public,salon.chair.user,model_salon_chair_user,base.group_public,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_salon_order_salon_user salon.order model_salon_order salon_management.group_salon_user 1 1 1 0
3 access_salon_order_salon_portal salon.order model_salon_order base.group_portal 1 1 0 0
4 access_salon_order_line_salon_user salon.order.line model_salon_order_line salon_management.group_salon_user 1 1 1 0
5 access_salon_stage_salon_user salon.stage model_salon_stage salon_management.group_salon_user 1 1 1 0
6 access_salon_chair_salon_user salon.chair model_salon_chair salon_management.group_salon_user 1 1 0 0
7 access_salon_chair_salon_portal salon.chair model_salon_chair base.group_portal 1 1 0 0
8 access_salon_service_salon_user salon.service model_salon_service salon_management.group_salon_user 1 1 0 0
9 access_salon_service_salon_portal salon.service model_salon_service base.group_portal 1 1 0 0
10 access_salon_order_manager salon.order model_salon_order salon_management.group_salon_manager 1 1 1 1
11 access_salon_order_line_manager salon.order.line model_salon_order_line salon_management.group_salon_manager 1 1 1 1
12 access_salon_stage_manager salon.stage model_salon_stage salon_management.group_salon_manager 1 1 1 1
13 access_salon_chair_manager salon.chair model_salon_chair salon_management.group_salon_manager 1 1 1 1
14 access_salon_service_manager salon.service model_salon_service salon_management.group_salon_manager 1 1 1 1
15 access_salon_booking_manager salon.booking model_salon_booking salon_management.group_salon_manager 1 1 1 1
16 access_salon_booking_portal salon.booking model_salon_booking base.group_portal 1 1 1 0
17 access_salon_working_hours_manager salon.working.hours model_salon_working_hours salon_management.group_salon_manager 1 1 1 1
18 access_salon_holiday_manager salon.holiday model_salon_holiday salon_management.group_salon_manager 1 1 1 1
19 access_res_partner_manager res.partner model_res_partner salon_management.group_salon_manager 1 1 1 1
20 access_res_users_manager res.users model_res_users salon_management.group_salon_manager 1 1 1 1
21 access_salon_chair_user_manager salon.chair.user model_salon_chair_user salon_management.group_salon_manager 1 1 1 1
22 access_salon_order_public salon.order model_salon_order base.group_public 1 0 0 0
23 access_salon_order_line_public salon.order.line model_salon_order_line base.group_public 1 0 0 0
24 access_salon_stage_public salon.stage model_salon_stage base.group_public 1 0 0 0
25 access_salon_chair_public salon.chair model_salon_chair base.group_public 1 0 0 0
26 access_salon_service_public salon.service model_salon_service base.group_public 1 0 0 0
27 access_salon_booking_public salon.booking model_salon_booking base.group_public 1 1 1 0
28 access_salon_working_hours_public salon.working.hours model_salon_working_hours base.group_public 1 0 0 0
29 access_salon_working_hours_portal salon.working.hours model_salon_working_hours base.group_portal 1 1 0 0
30 access_salon_holiday_public salon.holiday model_salon_holiday base.group_public 1 0 0 0
31 access_salon_holiday_portal salon.holiday model_salon_holiday base.group_portal 1 1 0 0
32 access_res_partner_public res.partner model_res_partner base.group_public 1 0 0 0
33 access_res_users_public res.users model_res_users base.group_public 1 0 0 0
34 access_salon_chair_user_public salon.chair.user model_salon_chair_user base.group_public 1 0 0 0

24
salon_management/security/salon_management_groups.xml

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Salon management module category-->
<record id="module_category_salon_management" model="ir.module.category">
<field name="name">Salon Management</field>
<field name="description">Helps you handle your salon needs</field>
<field name="sequence">5</field>
</record>
<!-- Salon user group-->
<record id="group_salon_user" model="res.groups">
<field name="name">Chair User</field>
<field name="category_id" ref="salon_management.module_category_salon_management" />
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
</record>
<!-- Salon manager group-->
<record id="group_salon_manager" model="res.groups">
<field name="name">Salon Manager</field>
<field name="category_id" ref="salon_management.module_category_salon_management" />
<field name="implied_ids" eval="[(4, ref('group_salon_user'))]" />
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" />
</record>
</data>
</odoo>

BIN
salon_management/static/description/assets/icons/capture (1).png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
salon_management/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
salon_management/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
salon_management/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
salon_management/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
salon_management/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
salon_management/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
salon_management/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
salon_management/static/description/assets/icons/img.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
salon_management/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
salon_management/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
salon_management/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
salon_management/static/description/assets/icons/photo-capture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
salon_management/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
salon_management/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
salon_management/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
salon_management/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
salon_management/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
salon_management/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
salon_management/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
salon_management/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
salon_management/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
salon_management/static/description/assets/misc/Cybrosys R.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

33
salon_management/static/description/assets/misc/email.svg

@ -0,0 +1,33 @@
<svg width="80" height="81" viewBox="0 0 80 81" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="3116889_design_email_material_communication_mail_icon 1" clip-path="url(#clip0_81_366)">
<g id="layer1">
<path id="rect3851" d="M74.6067 0.730957H5.5424C2.75742 0.730957 0.499756 3.01685 0.499756 5.83664V75.7642C0.499756 78.584 2.75742 80.8699 5.5424 80.8699H74.6067C77.3916 80.8699 79.6493 78.584 79.6493 75.7642V5.83664C79.6493 3.01685 77.3916 0.730957 74.6067 0.730957Z" fill="#DB534B"/>
<g id="Clip path group">
<mask id="mask0_81_366" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="1" y="5" width="78" height="76">
<g id="clipPath4206">
<path id="rect4208" d="M73.6244 5.2915H6.62595C3.92428 5.2915 1.73413 7.4473 1.73413 10.1066V76.0546C1.73413 78.7139 3.92428 80.8697 6.62595 80.8697H73.6244C76.3261 80.8697 78.5162 78.7139 78.5162 76.0546V10.1066C78.5162 7.4473 76.3261 5.2915 73.6244 5.2915Z" fill="white"/>
</g>
</mask>
<g mask="url(#mask0_81_366)">
<g id="g4145" opacity="0.489612">
<g id="g4147">
<path id="path4149" d="M65.8115 41.5171C65.8115 54.9863 54.4292 65.9053 40.3884 65.9053L198.828 221.861C212.869 221.861 224.251 210.942 224.251 197.472L65.8115 41.5171Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4151" d="M40.3884 65.9051C33.2495 65.9051 26.7979 63.0825 22.1802 58.5371L180.62 214.492C185.237 219.038 191.689 221.86 198.828 221.86L40.3884 65.9051Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4153" d="M22.1802 58.5373C17.7157 54.1428 14.9653 48.1381 14.9653 41.5171L173.405 197.472C173.405 204.093 176.155 210.098 180.62 214.493L22.1802 58.5373Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4155" d="M14.9653 41.5171C14.9653 28.0479 26.3476 17.1289 40.3884 17.1289L198.828 173.084C184.787 173.084 173.405 184.003 173.405 197.472L14.9653 41.5171Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4157" d="M40.3884 17.1289C47.5273 17.1289 53.9789 19.9516 58.5966 24.4969L217.036 180.452C212.418 175.907 205.967 173.084 198.828 173.084L40.3884 17.1289Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4159" d="M58.5964 24.4971C63.0609 28.8916 65.8113 34.8963 65.8113 41.5173L224.251 197.473C224.251 190.852 221.5 184.847 217.036 180.452L58.5964 24.4971Z" fill="black" fill-opacity="0.0588235"/>
</g>
<path id="path4111" d="M65.8114 41.5171C65.8114 54.9863 54.4291 65.9053 40.3884 65.9053C26.3476 65.9053 14.9653 54.9863 14.9653 41.5171C14.9653 28.0479 26.3476 17.1289 40.3884 17.1289C54.4291 17.1289 65.8114 28.0479 65.8114 41.5171Z" fill="black" fill-opacity="0.0588235"/>
</g>
</g>
</g>
<path id="path3864" d="M17.506 17.5386H62.9018C64.4068 17.5386 65.8501 18.1439 66.9143 19.2214C67.9784 20.2988 68.5763 21.7602 68.5763 23.284V57.7564C68.5763 58.5109 68.4295 59.258 68.1443 59.9551C67.8592 60.6521 67.4412 61.2855 66.9143 61.819C66.3873 62.3525 65.7618 62.7757 65.0733 63.0645C64.3849 63.3532 63.647 63.5018 62.9018 63.5018H17.506C14.3567 63.5018 11.8315 60.9164 11.8315 57.7564V23.284C11.8315 20.0953 14.3567 17.5386 17.506 17.5386ZM40.2039 37.6475L62.9018 23.284H17.506L40.2039 37.6475ZM17.506 57.7564H62.9018V30.0923L40.2039 44.4271L17.506 30.0923V57.7564Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_81_366">
<rect width="80" height="81" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

3
salon_management/static/description/assets/misc/phone.svg

@ -0,0 +1,3 @@
<svg width="36" height="44" viewBox="0 0 36 44" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Vector" d="M7.25 19.3903C10.13 26.0689 14.76 31.5322 20.43 34.9305L24.83 29.7268C25.38 29.0778 26.17 28.889 26.86 29.1486C29.1 30.0218 31.51 30.4938 34 30.4938C35.11 30.4938 36 31.544 36 32.8537V41.1135C36 42.4233 35.11 43.4734 34 43.4734C15.22 43.4734 0 25.5143 0 3.35456C0 2.0448 0.9 0.994629 2 0.994629H9C10.11 0.994629 11 2.0448 11 3.35456C11 6.29268 11.4 9.1364 12.14 11.7795C12.36 12.5937 12.2 13.5259 11.65 14.1749L7.25 19.3903Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 565 B

9
salon_management/static/description/assets/misc/star (1) 2.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

9
salon_management/static/description/assets/misc/support (1) 1.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 43 KiB

6
salon_management/static/description/assets/misc/support-email.svg

@ -0,0 +1,6 @@
<svg width="49" height="37" viewBox="0 0 49 37" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group">
<path id="Vector" d="M2.23798 3.59132C3.53363 4.39742 21.5313 15.9748 22.2027 16.3917C22.8741 16.8087 23.5573 17.0032 24.6173 17.0032C25.6774 17.0032 26.3606 16.8087 27.0319 16.3917C27.7033 15.9748 45.701 4.39742 46.9967 3.59132C47.4796 3.29945 48.2923 2.77131 48.469 2.17368C48.7753 1.11741 48.4455 0.714355 47.138 0.714355H24.6173H2.09664C0.789214 0.714355 0.459412 1.13131 0.765656 2.17368C0.942335 2.78521 1.75506 3.29945 2.23798 3.59132Z" fill="white"/>
<path id="Vector_2" d="M48.0214 4.21664C47.0555 4.80037 38.3865 12.0831 32.6503 16.4611L42.3323 29.3171C42.5679 29.5951 42.6739 29.9286 42.5443 30.0954C42.403 30.2483 42.0967 30.1649 41.8494 29.9008L30.2357 18.3374C28.4807 19.6716 27.2439 20.5889 27.0319 20.7279C26.1249 21.2699 25.4889 21.3394 24.6173 21.3394C23.7457 21.3394 23.1096 21.2699 22.2027 20.7279C21.9789 20.5889 20.7539 19.6716 18.9989 18.3374L7.38519 29.9008C7.14961 30.1788 6.83159 30.2622 6.69025 30.0954C6.54891 29.9425 6.65491 29.5951 6.89048 29.3171L16.5607 16.4611C10.8245 12.0831 2.06126 4.80037 1.09541 4.21664C0.0588929 3.59121 0 4.32783 0 4.89766C0 5.46749 0 33.3893 0 33.3893C0 34.6819 1.61367 36.2941 2.76797 36.2941H24.6173H46.4666C47.6209 36.2941 48.999 34.668 48.999 33.3893C48.999 33.3893 48.999 5.4536 48.999 4.89766C48.999 4.31393 49.0697 3.59121 48.0214 4.21664Z" fill="white"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

17
salon_management/static/description/assets/misc/tick-mark.svg

@ -0,0 +1,17 @@
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="52" height="52" fill="#F5F5F5"/>
<g clip-path="url(#clip0_0_1)">
<rect width="1440" height="7504" transform="translate(-107 -1660)" fill="white"/>
<rect x="-45" y="-203" width="1305" height="937" rx="19" fill="#FFF5FC"/>
<rect width="52" height="52" fill="url(#pattern0)"/>
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_0_1" transform="scale(0.00387597)"/>
</pattern>
<clipPath id="clip0_0_1">
<rect width="1440" height="7504" fill="white" transform="translate(-107 -1660)"/>
</clipPath>
<image id="image0_0_1" width="258" height="258" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAECCAYAAAAVT9lQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJJ0lEQVR4nO3dYZXjNhQGUDEohEAohEAohEAYCIawEAxhIQRCIQTCQmhX202bTWcmcWzpSda953y/J9JYL5EsyykBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD1/f49f37PXwXztVprgMXeUtkCkDNXaw2wyOF7zql8EXir1SBgmTw4v6XyReBUq0HA835L/8zVSxeAXGSOldoELPBHqvMrIP+N3yu1CXhS/hXwJZUvAIoANKrGbcFr8t/5rU6zgGfVWhBUBKBBtRYEFQFoVJ4KXJIiAMOqsUNQEYBG1Z4K/PXz7ykC0IjaU4GcuUrLgKecUt0CoAhAQ/JP8jwgFQEY1CHV2yCkCECDaj0rcJ8/azQOeGxK9QvAtQi4OwDBIm4NKgLQkJoPDCkC0KCo9QBFABpRe6uwIgANidofcM23pAhAqDwAo9YDrkXAyUIQKA/AqPUARQAacEqxRSBHEYBAkYuC15yKtxL40JwUARhWXhQ8p/gi4DVkEOSQYu8MXDOXbijwvug7A4oABIvcLnwbuwYhyCnFFwBFAALVet/go+RfI4fCbQXekefi0QXgWgRsGILKWrk9eM0fZZsL3It+cOg+p7LNBe5Fnib0XuayzQXutbJHQBGAIK0VAbcJobI8B2+pCDhhCCrLRSB64N8XAbcJoaLWikCO24RQ0ZTiB/19PFIMFc0pftDfZy7aYuAXLRYBLyeFilosApfkDgFU02IRcIcAKmnt4aHbuEMAFbT28NBtpoLtBn5quQh8Ldhu4KeWi4BnCKCClouAo8aggpaLQM6xXNOBrPUiYPswFNZ6EZjLNR3IWi8CFgehsNaLgMVBKKz1IpBj5yAU1EMRmIq1HuiiCNg5CAX1UAQuyeIgFNNDEfBYMRTUQxHIOZXqAKDd8wRuMxdrPdDkyUL3ceYgFNRDEbBpCArqoQjk2DQEhfRSBKZSHQCj+5LiB/gzOZfqABjdKcUP8GfibcVQSC9FIOdYqA9gaD0VgalQH8DQ8rdr9OB+NudCfQBDy/vy83w7eoA/E+sCUEBPRSDnWKYbYFz5m7WnIjCV6QYYVy9PEl5zLtMNMK7eioB1ASggf7tGD+4lOZbpBhjXnOIH9pJ8KdMNMK5enh+4xvkCsLFTih/YS+J8AdhYb0Ugx/kCsKG8YSh6UC/NXKQnaFb+h+d5oJ+AZfS2azDHy0oHk4vA9Z+fL9ZT7MfZnTyYLil+YC+N9xEM5LYI3Ca/osq3wXq9bRi65q1EZ9Cmj4rANflb7Bj26fYhF9ToQb003lM4kEdF4DZT0Gfs3ZI+biW2EA/klQvUQuIy+ad19KB+JccSnUF71nxLWUh8Tu6j6AH9SmwhHsSaInAbC4kf6/E2YY4txIPYqghcc0l+Rt47pD6LgFeXD2LrInCbqWI7WtbrbcIctwoHULIIXGMhsb9zBa5xq3AANYrANSMvJNbs563/Z9Z6di7q4hxtITEXv+gB/Wo8Vbhz0d9QlzTGQmJuY/RgfjVuFe5cdBG4zVS4rZF6vU2Yc0lj/WobTktF4Jo9LiT2fIcgx63CnWv14tzbQuI5xffpq5kK9AeNaf3n6h4WEucU34+vxu7BgZxS/AX3WS6p34XE1vv2sziAdEA9PAM/FWt9Gbl4RffZmtg9OKBejsbqZSExf8aWp1yPct6+S+hFLyfmtr6Q2PsdArsH6epwjFYXEucU3zdrYvcgP/SwXnDNJbW1kNhTIX0vHijiX72sF9xmKtITy+SCFN0Pa2JKwP/0eFFHLiTmv9vz4mDOcfNeYRemFH9xLk3EQmLvi4M5HijiU+cUf5G+kpoLiXOlNpXKJZkS8EC+QHr9yZsv8OP2XfKL3hcHc0r3ETuRL5Toi3VNpu275Ife+yXHlIBF8gUTfdGuydYLiT3/UrrtE1MCFut9QWzLhcTe+yLHGQO85JD6/xbMWbuQ2Puvo5xpRfvhx/bT6It4i1zSa4tke2i/MwbYxJziL+atMi1o9yHt4xeRKQGb2MMGmts8s5C4lzZPD9oJi/TyyPKzebSQODfwGdfGlIAi9rCZ5j7vLSTuYV0gx5SAYnp6ZPnZXNJ/C4mHtI91gend/x5sZA8baz4bPHtYFzAloIpjir/Y5eOYElDNlOIvePl/ps/+aVDCHn5G7ymmBIQ4pP2uF/QYUwLCnFL8ABBTAhowp/iBMHIuyePFNKDHU5D3lOPjfxHUsbctyL3EiUM0Z0rxA2OkXJIpAY06p/gBMkqOT/5PoLpDckuxRkwJaN5ent5rNV5VRjf2cM5fq/H2YrqxlxN+Wou3F9MdtxS3jSkB3drjqUZROS3se2jKOcUPot5zXtzr0JhDcktxTb6lbV/fBmHcUnw90wv9Dc2aU/yg6i0OG2F3PKW4PA4bYZfcUnw+04t9DF3IF3j0IGs9l2TPAAOw6/DzHF/vWujHIbml+FHmFf0K3Tml+EHXWmwjZkh7fJfimpzWdSf0ac/vUlya88q+hK4dU/wgjI5txJAcZDKt70Lo38gHmdhGDDdG3XV43KLzYE/yT+TogVkzTiOGD5xT/ACtEXsG4BOHNMYtRacRwwN7P+vwvF1Xwb7tedfhYcN+gl3b667DactOghHs7azDy7bdA+OYU/wA3irHjfsGhrGXsw7nrTsGRpO/SaMH8prYMwAb6fnBpLcC/QFD6nWK4KEi2FiPDyZ5NwEUMKX4wf1sPFQEBfVwdoEFQiishynCqVjrgX+1PEU4F2w3cKfVKcKhZKOBX7U4RZiKthh4V0tThEuyQAhhWpkiOHUIArUwRTgXbyXwUPQU4VC+icAzoqYIU43GAc+JmCJckgVCaE7tKYIFQmhUrSnCuVaDgOVqTREOtRoEvKb0FGGq1xRgjVJTBAuE0JFSU4RTzUYA6209RbBACB3a+tBTZxBCp45pmyLgDELo3Nr3IjiDEHZg7RTBAiHsxKtvV/aSEtiZr2l5ITiGfFKgmDxFyPP9Z4vAHPMxgdLyS0mfXSA8BH1GoIK8MehRIZjCPh1QxaPtx5e4jwbUlL/xPyoEDhyBQXy0t+Ac+aGA+t7bW+B5AhjQ7d4CzxPAoPItwm/J8wQwvLxw+Bb9IQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4DV/A/Mf3+pWEmbtAAAAAElFTkSuQmCC"/>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

9
salon_management/static/description/assets/misc/whatsapp 1.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 38 KiB

33
salon_management/static/description/assets/misc/whatsapp.svg

@ -0,0 +1,33 @@
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="3116884_whatsapp_square_chat_design_message_icon 1" clip-path="url(#clip0_81_382)">
<g id="layer1">
<path id="rect3851" d="M74.6066 0.72168H5.5424C2.75742 0.72168 0.499756 2.97935 0.499756 5.76433V74.8286C0.499756 77.6135 2.75742 79.8712 5.5424 79.8712H74.6066C77.3916 79.8712 79.6492 77.6135 79.6492 74.8286V5.76433C79.6492 2.97935 77.3916 0.72168 74.6066 0.72168Z" fill="#39BB59"/>
<g id="Clip path group">
<mask id="mask0_81_382" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="9" width="75" height="72">
<g id="clipPath4206">
<path id="rect4208" d="M75.7716 9.01709H11.1629C8.55758 9.01709 6.44556 11.0471 6.44556 13.5512V75.6502C6.44556 78.1543 8.55758 80.1843 11.1629 80.1843H75.7716C78.3769 80.1843 80.4889 78.1543 80.4889 75.6502V13.5512C80.4889 11.0471 78.3769 9.01709 75.7716 9.01709Z" fill="white"/>
</g>
</mask>
<g mask="url(#mask0_81_382)">
<g id="g4145" opacity="0.489612">
<g id="g4147">
<path id="path4149" d="M68.2374 43.1284C68.2374 55.8115 57.2611 66.0932 43.7212 66.0932L196.51 212.946C210.049 212.946 221.026 202.665 221.026 189.982L68.2374 43.1284Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4151" d="M43.7211 66.0932C36.8369 66.0932 30.6154 63.4353 26.1624 59.1553L178.951 206.008C183.404 210.289 189.625 212.946 196.51 212.946L43.7211 66.0932Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4153" d="M26.1623 59.1553C21.8571 55.0173 19.2048 49.363 19.2048 43.1284L171.993 189.982C171.993 196.216 174.645 201.87 178.951 206.008L26.1623 59.1553Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4155" d="M19.2048 43.1284C19.2048 30.4453 30.1811 20.1636 43.7211 20.1636L196.509 167.017C182.969 167.017 171.993 177.299 171.993 189.982L19.2048 43.1284Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4157" d="M43.7212 20.1636C50.6054 20.1636 56.8269 22.8215 61.2799 27.1015L214.068 173.955C209.615 169.675 203.394 167.017 196.51 167.017L43.7212 20.1636Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4159" d="M61.2798 27.1016C65.585 31.2396 68.2373 36.8939 68.2373 43.1284L221.026 189.982C221.026 183.747 218.373 178.093 214.068 173.955L61.2798 27.1016Z" fill="black" fill-opacity="0.0588235"/>
</g>
<path id="path4111" d="M68.2373 43.1284C68.2373 55.8115 57.261 66.0932 43.7211 66.0932C30.1811 66.0932 19.2048 55.8115 19.2048 43.1284C19.2048 30.4453 30.1811 20.1636 43.7211 20.1636C57.261 20.1636 68.2373 30.4453 68.2373 43.1284Z" fill="black" fill-opacity="0.0588235"/>
</g>
</g>
</g>
<path id="path4074" d="M51.3896 43.6875C51.9673 43.9879 52.337 44.1497 52.4526 44.3808C52.5912 44.635 52.545 45.7904 51.9673 47.1076C51.5051 48.4017 49.1018 49.6496 48.0388 49.6958C46.9758 49.7421 46.9527 50.5277 41.1985 48.0089C35.4444 45.49 31.9781 39.3431 31.7008 38.9502C31.4235 38.5574 29.4823 35.7612 29.5748 32.9188C29.6903 30.0995 31.1693 28.7592 31.7701 28.2046C32.3247 27.6037 32.9487 27.5344 33.3415 27.6037H34.4276C34.7743 27.6037 35.2596 27.4651 35.6986 28.6437L37.2931 32.965C37.4318 33.2654 37.5242 33.6121 37.3163 33.9818L36.6923 34.9293L35.7911 35.8998C35.5138 36.1771 35.1902 36.4776 35.5138 37.0553C35.7911 37.6561 36.9465 39.5741 38.5641 41.1687C40.667 43.2022 42.5158 43.8724 43.0704 44.1728C43.625 44.4963 43.9716 44.4501 44.3182 44.0804L46.1901 41.9081C46.6291 41.3304 46.9989 41.4691 47.5304 41.6539L51.3896 43.6875ZM40.4128 16.0493C46.5417 16.0493 52.4195 18.484 56.7533 22.8178C61.0871 27.1515 63.5217 33.0293 63.5217 39.1582C63.5217 45.287 61.0871 51.1649 56.7533 55.4986C52.4195 59.8324 46.5417 62.2671 40.4128 62.2671C35.8604 62.2671 31.6315 60.9498 28.0496 58.6852L17.304 62.2671L20.8858 51.5214C18.6212 47.9396 17.304 43.7106 17.304 39.1582C17.304 33.0293 19.7386 27.1515 24.0724 22.8178C28.4061 18.484 34.284 16.0493 40.4128 16.0493ZM40.4128 20.6711C35.5098 20.6711 30.8075 22.6188 27.3405 26.0858C23.8735 29.5528 21.9257 34.2551 21.9257 39.1582C21.9257 43.1329 23.1736 46.8072 25.2996 49.8114L23.0812 56.4898L29.7596 54.2714C32.7638 56.3974 36.4381 57.6453 40.4128 57.6453C45.3159 57.6453 50.0182 55.6975 53.4852 52.2305C56.9522 48.7635 58.9 44.0613 58.9 39.1582C58.9 34.2551 56.9522 29.5528 53.4852 26.0858C50.0182 22.6188 45.3159 20.6711 40.4128 20.6711Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_81_382">
<rect width="80" height="80" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
salon_management/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
salon_management/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
salon_management/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
salon_management/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
salon_management/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
salon_management/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
salon_management/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

BIN
salon_management/static/description/assets/screenshots/s.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
salon_management/static/description/assets/screenshots/s1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
salon_management/static/description/assets/screenshots/s10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
salon_management/static/description/assets/screenshots/s2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
salon_management/static/description/assets/screenshots/s3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
salon_management/static/description/assets/screenshots/s4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
salon_management/static/description/assets/screenshots/s5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
salon_management/static/description/assets/screenshots/s6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
salon_management/static/description/assets/screenshots/s7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
salon_management/static/description/assets/screenshots/s8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
salon_management/static/description/assets/screenshots/s9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
salon_management/static/description/assets/screenshots/s_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
salon_management/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 KiB

BIN
salon_management/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

920
salon_management/static/description/index.html

@ -0,0 +1,920 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Odoo App 3 Index</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet">
</head>
<body>
<section>
<div class="container"
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center"
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)">
<div class="my-3">
<img src="assets/misc/Cybrosys R.png"
style="width:auto !important; height:40px !important">
</div>
<div class="my-3 d-flex align-items-center">
<div class="text-center"
style="background-color:#7c7bad !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;">
Community
</div>
<div class="text-center"
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;">
Enterprise
</div>
<div class="text-center"
style="background-color:#017E84 !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;">
Odoo.sh
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column"
style="margin: 80px 0px !important;">
<h1 style="font-size: 2.8rem;font-weight: 700; color:
#1A202C;">Beauty Spa Management</h1>
<p style="color:#1A202C; padding: 8px 15px; text-align: center; font-size: 24px;">Beauty Parlour Management with Online Booking System</p>
<div style="width: 80%; margin-top: 3rem;">
<img src="assets/screenshots/hero.gif"
class="img-responsive" width="100%" height="auto">
</div>
</div>
</div>
<div class="container mt-5 mb-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#714b67 !important">
Key Highlights
</p>
</div>
<div class="row py-4">
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0;">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">Online booking facility</p>
<p class="m-0" style="color:#718096">Customers can book the services from the website.
</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0;">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Accounting facility</p>
<p class="m-0" style="color:#718096">Manage the
invoices for beauty spa or salon orders.
</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0;">
<i class="fa-solid fa-star "
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Customer notification via email
<p class="m-0" style="color:#718096">Notify customer on approval or rejection of booking.
</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0; ">
<i class="fa-solid fa-star"
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
User interactive dashboard</p>
<p class="m-0" style="color:#718096">Attractive,
informative and interactive dashboard.
</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0; ">
<i class="fa-solid fa-star"
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Customer can view the available chairs and order details</p>
<p class="m-0" style="color:#718096">Customer can view the available
chairs and the details of confirmed orders for each chair by date.
</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0; ">
<i class="fa-solid fa-star"
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Track the chair user by date</p>
<p class="m-0" style="color:#718096">The history of chair user is available.
</p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 p-3">
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px;
background: #FFF;
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); ">
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67;
display: flex; justify-content: center; align-items: center;
margin-right: 10px; flex-shrink: 0; ">
<i class="fa-solid fa-star"
style="color: #fff;font-size:14px;"></i>
</div>
<div>
<p style="color: #1A202C;font-weight: 600;
font-size: 1.2rem; margin-bottom: 2px;">
Different access levels for users and manager</p>
</div>
</div>
</div>
</div>
</div>
<div class="container rounded">
<ul class="nav nav-tabs d-flex"
style="width: fit-content;margin: 0 auto;gap: 1rem;">
<li class="col text-center py-2 text-nowrap "
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;">
<a
class="active show" data-toggle="tab" href="#tab1"
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;">
<i class="fa-regular fa-image pr-2"
style="color: #fff;"></i>
Screenshots</a></li>
<li class="col text-center py-2 text-nowrap "
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;">
<a
data-toggle="tab" href="#tab2"
style="color: #fff;font-weight: 500; text-decoration: none;"><i
class="fa-solid fa-star pr-2"
style="color: #fff;"></i>Features</a></li>
<li class="col text-center py-2 text-nowrap "
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;">
<a data-toggle="tab" href="#tab3" style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i
class="fa-solid fa-book-open pr-2"
style="color: #fff;"></i>Released Notes</a></li>
</ul>
<div class="tab-content"
style="background-color: rgba(121, 113, 119, 0.04);">
<div id="tab1" class="tab-pane fade in active show">
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">User Access Configuration: Select user as 'Salon Manager' or 'Chair User'.</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s_1.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Dashboard</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Dashboard view is shown in the below image. Your customer can book the service in two ways,
either via direct booking or online booking. The chairs with Black font color denote the ones
available for online booking and the White ones for direct booking. From the dashboard,
we will get all information about the chair, whether the particular chair is free or
is in currently use, number of orders on the chair on the day and collection of the day.
Also, one can see the active orders of that chair. If the user clicks on the chair, it will
directly navigate to the active orders of that chair. In case, if the user want to change
the settings of a chair, they can just click on the settings icon on the chair.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s1.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Chairs (Salon --> Chair)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">You can create new chairs and edit the details of each chair from here. You can
assign a user to the chair by adding a new user in the users tab available in
the form view of chair (Check the image shown below). The user who has been
added last will be the current user of the chair. Using this tab, you can track
which user is active on the Chair on a particular date or time.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s2.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Services ( Salon --> Services)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Services provided by the Spa will be listed here. You can create new services and set the
price and the required time to complete the services in Hours.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s3.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Working Hours (Configuration --> Working Hours)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Set the working hours here. The working hours will be available to the customers on the website,
which will be helpful for them to book the services within the working hours.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s4.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Settings (Configuration --> Settings)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">You can assign the chairs for online booking. Only the assigned chairs will be available to the
customers on the website. Also, you can set the holidays from here.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s5.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Online Booking (Website --> Bookings)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">The customers can book the services from the website by providing their contact details, the
date and time for booking. The working hours will be displayed in a table, which will help the
customer to choose the right time.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s6.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Check the availability of chair (Website
--> Bookings)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">The customer can check the availability of chairs from the website. They can select a particular
date and see the chairs available for online booking and also the details of orders on each chair.
Customers can use this option to choose the right time for the service.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s7.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Bookings (Salon --> Bookings)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">You can see all the online bookings in a list view. You can either approve or reject a booking
from the form view. In both cases, a notification email will be sent to the customer. In the
current bookings tab inside the form view, you can see all the existing salon orders on the
corresponding date on that chair. After checking the time availability, you can decide whether
to approve or reject the booking. The approved bookings will be changed as salon orders.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s8.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Salon Orders ( Salon --> Salon Orders)</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
You can see all the salon orders in different stages in the kanban view. The salon order
for the chairs, which are not available for online booking, can be created from here. The
stages of the salon orders can be changed by dragging and dropping the salon orders in
different stages. The list view for the salon orders is also there.
</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s9.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
<div class="col-lg-12 py-2"
style="padding: 1rem 4rem !important;">
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Salon Order Form View</h4>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Form view for the salon orders is shown in the image below. You can validate and confirm the
salon orders in the 'Draft' stage to move them to the 'Open' stage. The 'Open' stage is used
when you are working for the order. After finishing the service, create an invoice and then
move the stage from 'Invoiced' to 'Closed' using the close button. You will get the invoice
details of a salon order by clicking the Invoice button in the upper right side of the form view.</p>
</div>
<div class="row justify-content-center p-3 w-100 m-0">
<img src="assets/screenshots/s10.png"
class="img-responsive" width="100%"
height="auto">
</div>
</div>
</div>
</div>
<div id="tab2" class="tab-pane fade">
<div class="col-mg-12" style="padding: 1rem 4rem;">
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;">
<li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span>Online booking facility
</li>
<li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span>Accounting facility
</li>
<li class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<span style="margin-right: 12px;"><img
src="assets/misc/star (1) 2.svg"
alt=""
width="16px"></span>User interactive dashboard
</li>
</ul>
</div>
</div>
<div id="tab3" class="tab-pane fade">
<div class="col-mg-12 active" style="padding: 1rem 4rem;">
<div class="py-3"
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<div class="d-flex mb-3"
style="font-size: 0.8rem; font-weight: 500;"><span>Version
18.0.1.0.0</span><span
class="px-2">|</span><span
style="color: #714B67;font-weight: 600;">Released on:02 th Feb 2025</span>
</div>
<p class="m-0"
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;">
Initial Commit for Beauty Spa Management</p>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Related Products</p>
</div>
</div>
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="row p-4">
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/16.0/manufacturing_reports/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/1.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Manufacturing Reports</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/16.0/mrp_work_order_print/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/2.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Print Work Order Details</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/16.0/bom_total_cost/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/3.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Show Total Cost On BOM</p>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="row p-4">
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/16.0/simple_mrp_order/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px; ">
<img src="assets/modules/4.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Simple Manufacturing Orders</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/16.0/bom_multiple_product/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px;">
<img src="assets/modules/5.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
BOM Multiple Product Selection</p>
</div>
</a>
</div>
</div>
<div class="col">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/16.0/cw_mrp/"
style="color: #000; text-decoration: none;">
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;">
<div style="width: 300px;">
<img src="assets/modules/6.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Catch Weight Management:
Manufacturing</p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#myCarousel"
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="#myCarousel"
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 class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Our Services</p>
</div>
</div>
<div class="container my-5">
<div class="row py-3">
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/cogs.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Customization</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/wrench.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Implementation</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/lifebuoy.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Support</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/user.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Hire
Odoo Developer</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/puzzle.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Integration</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/update.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Migration</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/consultation.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Consultancy</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/training.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Implementation</p>
</div>
</div>
<div class="col-md-4 col-sm-6 px-4 py-4">
<div
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;">
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);">
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px;
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);">
<img src="assets/icons/license.png"
alt="service-icon" width="38px"
height="auto">
</div>
</div>
<p style="margin-top: 20px; font-weight: bold;">Odoo
Licensing Consultancy</p>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Our Industries</p>
</div>
</div>
<div class="container">
<div class="row my-5 py-4">
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100 "
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);">
<img src="assets/icons/trading-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">Trading</p>
<p>Easily procure and sell your products</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;">
<img src="assets/icons/pos-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">POS</p>
<p>Easy configuration and convivial experience</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)">
<img src="assets/icons/education-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">
Education</p>
<p>A platform for educational management</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; ">
<img src="assets/icons/manufacturing-black.png"
width="42px" height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">
Manufacturing</p>
<p>Plan, track and schedule your operations</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;">
<img src="assets/icons/ecom-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">E-commerce &
Website</p>
<p>Mobile friendly, awe-inspiring product pages</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);">
<img src="assets/icons/service-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">Service
Management</p>
<p>Keep track of services and invoice</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; ">
<img src="assets/icons/restaurant-black.png"
width="42px" height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">
Restaurant</p>
<p>Run your bar or restaurant methodically</p>
</div>
</div>
<div class="col-md-3 col-sm-6 p-0">
<div class="d-flex flex-column h-100"
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);">
<img src="assets/icons/hotel-black.png" width="42px"
height="auto" alt="">
<p style="color: #714B67;font-weight: 600; margin-top: 10px;
font-size: 1.2rem; margin-bottom: 2px;">Hotel
Management</p>
<p>An all-inclusive hotel management application</p>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5">
<p class="m-0"
style="font-weight: 600; font-size: 24px; color:#000 !important">
Support</p>
</div>
</div>
<div class="container my-5">
<div class="row" style="background-color: #FFFAFE;">
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"
style="border-right: 1px solid #D9D9D9;">
<div style="padding: 30px;">
<div class="d-flex align-items-center">
<img src="assets/misc/support (1) 1.svg" alt=""
width="60px" style="margin-right: 12px;">
<div style="padding: 0px 8px;">
<span
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need
Help?</span>
<p class="m-0" style="color:#718096;">Got
questions or need help? Get in touch.</p>
<div style="font-weight: 400;"><span><img
src="assets/misc/support-email.svg"
alt=""
width="18px"
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center">
<div style="padding: 30px;">
<div class="d-flex align-items-center">
<img src="assets/misc/whatsapp 1.svg" alt=""
width="60px" style="margin-right: 12px;">
<div>
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span>
<p class="m-0" style="color:#718096;">Say hi to
us on WhatsApp!</p>
<div style="font-weight: 400; font-size: 16px;"><span><img
src="assets/misc/phone.svg"
alt="" width="14px"
style="filter: invert(1); margin-right: 0.8rem;"></span>+91
99456767686
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>

BIN
salon_management/static/src/css/images/chair.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

213
salon_management/static/src/css/salon_dashboard.css

@ -0,0 +1,213 @@
.o_action_manager {
overflow: auto !important;
}
.salon_dashboards {
padding-top: 10px;
background-color: #f8faff !important;
}
.salon-card h4 {
font-size: 1.1rem;
}
.breadcrumbs {
margin-top: 0;
}
/* Widget One
---------------------------*/
.stat-content {
display: inline-block;
width: 66%;
}
.stat-icon {
display: inline-block;
}
.stat-widget-one .stat-icon {
vertical-align: top;
margin: auto;
width: 100%;
color: #01c490;
}
.stat-widget-one .stat-icon i {
font-size: 30px;
font-weight: 900;
display: inline-block;
color: #01c490;
}
.stat-widget-one .stat-text {
font-size: 14px;
color: #868e96;
font-weight: bold;
}
.stat-widget-one .stat-digit {
font-size: 24px;
color: #02448b;
}
.stat-count {
font-size: 20px;
text-align: center;
color: #00438b;
}
.stat-title {
font-size: 17px;
text-align: center;
color: #00438b;
}
/*=====================Dashboard===========================*/
.salon_dashboards {
background-color: #f8faff !important;
padding: 0px !important;
}
.container-fluid.o_hr_dashboard {
padding: 0px !important;
}
.salon-card {
padding: 0px;
margin-bottom: 1.5rem;
border-radius: 0px;
box-shadow: none;
background: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
will-change: transform, box-shadow;
}
.salon-card:hover {
transform: translateY(-2px) translateZ(0) !important;
box-shadow: 0 10px 10px 0 rgba(62, 57, 107, 0.12), 0 0 0 transparent !important;
}
.salon {
margin-top: 3%;
margin-bottom: 2%;
}
.salon .stat-icon {
border-radius: 15px 0 0 15px;
width: 30%;
height: 100px;
text-align: center;
padding-top: 10%;
background: #314384ff;
color: #fff;
}
.salon .salon-card {
border-radius: 15px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
will-change: transform, box-shadow;
box-shadow: 0 10px 40px 0 rgba(62, 57, 107, 0.07),
0 2px 9px 0 rgba(62, 57, 107, 0.06);
}
.stat-widget-one .stat-text {
font-size: 14px;
color: #314384ff;
margin: 2rem 0rem 1rem 0rem;
text-align: center;
}
.stat-widget-one .stat-digit {
font-size: 20px;
font-weight: bolder;
padding: 1px 10px 2px 0;
color: #8061a9;
text-shadow: 0px 0px 20px #000000;
text-align: center;
}
.stat-widget-one .stat-icon i {
/*border-radius: 15px 0 0 15px;*/
font-size: 25px;
font-weight: 900;
display: inline-block;
color: #fff;
}
.stat-widget-one {
border-radius: 15px;
background-color: white;
text-align: inherit !important;
}
.stat-widget-one {
width: 100%;
}
.salon_sales .stat-icon {
background: #964ec2 !important;
}
.salon_clients .stat-icon {
background: #813de6 !important;
}
.salon_orders .stat-icon {
background: #6f23a9 !important;
}
.salon_sales .stat-widget-one .stat-text {
color: #964ec2;
}
.salon_clients .stat-widget-one .stat-text {
color: #813de6;
}
.salon_orders .stat-widget-one .stat-text {
color: #6f23a9;
}
.salon-card-body {
display: flex;
justify-content: space-between;
align-items: center;
}
/*Chair*/
img {
padding: 5px;
}
article {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(17em, 1fr));
grid-gap: 1em;
height: fit-content;
margin-left: 1vw;
}
@media (max-width: 575.98px) {
.salon_chair {
width: 100%;
position: relative;
}
}
.chair_name {
opacity: 100%;
position: absolute;
padding: 26px 26px 3px 73px;
color: #ffffff;
font-weight: bolder;
-webkit-filter: drop-shadow(0px 4px 5px #000000);
filter: drop-shadow(0px 4px 5px #000000);
}
.chair_orders {
opacity: 100%;
position: absolute;
padding: 62px 0px 2px 94px;
color: #ffffff;
font-weight: bolder;
-webkit-filter: drop-shadow(0px 4px 5px #000000);
filter: drop-shadow(0px 4px 5px #000000);
}
.chair_setting {
opacity: 0.0;
-webkit-transition: all 500ms ease-in-out;
-moz-transition: all 500ms ease-in-out;
-ms-transition: all 500ms ease-in-out;
-o-transition: all 500ms ease-in-out;
transition: all 500ms ease-in-out;
}
.salon_chair:hover .chair_setting {
opacity: 1.0;
padding: 16px 0 0px 165px;
color: #4d4d4d;
font-size: medium;
-webkit-filter: drop-shadow(0px 4px 5px #da9bff);
filter: drop-shadow(0px 2px 6px #d999ff);
}
.salon_chair {
opacity: 85%;
background-image: url("images/chair.png");
background-repeat: no-repeat;
background-size: contain;
width: auto;
height: 100vw;
}
.salon_chair {
height: 200px;
width: 100%;
}
.salon_chair {
-webkit-filter: drop-shadow(0px 4px 4px #3e3e3e);
filter: drop-shadow(0px 4px 4px #373737);
}

46
salon_management/static/src/css/salon_website.css

@ -0,0 +1,46 @@
.chair_box_website {
text-align: center;
border: 1px solid #666;
padding: 10px 15px;
box-shadow: 7px 8px 5px #888888;
background-color: #337ab7;
color: #000000;
}
.field_booking_chair {
font-weight: bold;
}
input[type="text"] {
width: 100%;
}
input[type="email"] {
width: 100%;
}
input[type="checkbox"] + label {
color: #7c7bad;
font-style: italic;
}
input[type="checkbox"]:checked + label {
color: #00a09d;
font-style: normal;
}
select {
width: 100%;
}
.selection_service {
height: 6em;
overflow: auto;
border: 1px solid #b3b3b3;
border-radius: 5px;
background-color: #fcfcfc;
}
#booking_chair_details {
height: 200px !important;
text-align: center;
border: 1px solid #666;
padding: 15px 0px;
box-shadow: 7px 8px 5px #888888;
background-color: #7c7bad;
border-radius: 58px;
color: #fff;
margin-bottom: 10px;
}

143
salon_management/static/src/js/salon_dashboard.js

@ -0,0 +1,143 @@
/** @odoo-module */
import { rpc } from "@web/core/network/rpc";
import { Component, onMounted, useState } from "@odoo/owl";
import { registry } from "@web/core/registry";
import { useService } from "@web/core/utils/hooks";
const actionRegistry = registry.category("actions");
import { _t } from "@web/core/l10n/translation";
const { useRef } = owl;
/* Create a component named 'SalonDashboard' with extending Component*/
export class SalonDashboard extends Component {
setup() {
super.setup(...arguments);
this.bookings_count = useRef("bookings_count");
this.recent_count = useRef("recent_count");
this.orders_count = useRef("orders_count");
this.clients_count = useRef("clients_count");
this.state = useState({ list: [] });
this.orm = useService('orm');
onMounted(() => {
this.render_dashboards();
});
}
/** Function that renders values into the dashboard **/
async render_dashboards() {
const result = await this.orm.call('salon.booking', 'get_booking_count', [0], {});
if (this.bookings_count.el) {
this.bookings_count.el.innerHTML = `<span class='stat-digit'>${result.bookings}</span>`;
}
if (this.recent_count.el) {
this.recent_count.el.innerHTML = `<span class='stat-digit'>${result.sales}</span>`;
}
if (this.orders_count.el) {
this.orders_count.el.innerHTML = `<span class='stat-digit'>${result.orders}</span>`;
}
if (this.clients_count.el) {
this.clients_count.el.innerHTML = `<span class='stat-digit'>${result.clients}</span>`;
}
this.state.list = await rpc("/salon/chairs", {});
}
/** Click function of 'Bookings' card and open bookings list view **/
show_bookings(ev) {
ev.stopPropagation();
ev.preventDefault();
this.env.services.action.doAction({
name: _t("Salon Bookings"),
type: 'ir.actions.act_window',
res_model: 'salon.booking',
view_mode: 'list,form',
views: [[false, 'list'], [false, 'form']],
domain: [['state', '=', 'approved']],
target: 'current'
});
}
/** Click function of 'Recent Works' card in dashboard **/
show_sales(ev) {
ev.stopPropagation();
ev.preventDefault();
this.env.services.action.doAction({
name: _t("Recent Works"),
type: 'ir.actions.act_window',
res_model: 'salon.order',
view_mode: 'list,form',
views: [[false, 'list'], [false, 'form']],
domain: [['stage_id', 'in', [3, 4]]],
target: 'current'
});
}
/** Click function of 'Salon Client' card **/
show_clients(ev) {
ev.stopPropagation();
ev.preventDefault();
this.env.services.action.doAction({
name: _t("Clients"),
type: 'ir.actions.act_window',
res_model: 'res.partner',
view_mode: 'list,form',
views: [[false, 'list'], [false, 'form']],
domain: [['partner_salon', '=', true]],
target: 'current'
});
}
/** Click function of 'Salon Orders' card **/
show_orders(ev) {
ev.stopPropagation();
ev.preventDefault();
this.env.services.action.doAction({
name: _t("Salon Orders"),
type: 'ir.actions.act_window',
res_model: 'salon.order',
view_mode: 'list,form,calendar',
views: [[false, 'list'], [false, 'form']],
target: 'current'
});
}
/** Click function of dashboard chairs **/
chairs_click(ev) {
ev.stopPropagation();
ev.preventDefault();
const active_id = ev.target.id;
this.env.services.action.doAction({
name: _t("Chair Orders"),
type: 'ir.actions.act_window',
res_model: 'salon.order',
view_mode: 'kanban,list,form',
views: [[false, 'kanban'], [false, 'list'], [false, 'form']],
domain: [['chair_id', '=', parseInt(active_id)]],
context: {
default_chair_id: parseInt(active_id)
},
target: 'current'
});
}
/** Click function of dashboard chair's settings icon **/
settings_click(ev) {
ev.stopPropagation();
ev.preventDefault();
const active_id = ev.target.id;
this.env.services.action.doAction({
name: _t("Chair Orders"),
type: 'ir.actions.act_window',
res_model: 'salon.chair',
view_mode: 'form',
views: [[false, 'form']],
context: {
default_name: active_id
},
target: 'current'
});
}
}
SalonDashboard.template = "SalonSpaDashBoard";
actionRegistry.add("salon_dashboard", SalonDashboard);

103
salon_management/static/src/js/website_salon_booking.js

@ -0,0 +1,103 @@
/** @odoo-module */
import publicWidget from "@web/legacy/js/public/public_widget";
import { rpc } from "@web/core/network/rpc";
import { _t } from "@web/core/l10n/translation";
/** Extends publicWidget to define button click functions.**/
publicWidget.registry.SalonManagement = publicWidget.Widget.extend({
selector: '.chair_booking',
events: {
'click #send_button': 'ClickSend',
'click #check_button': 'ClickCheckButton',
},
/** Function to check validation cases and create booking
while click send button from booking page(website). **/
ClickSend(ev) {
var name = this.$el.find("#name")[0].value;
var date = this.$el.find("#date")[0].value;
var time = this.$el.find("#time")[0].value;
var phone = this.$el.find("#phone")[0].value;
var email = this.$el.find("#email")[0].value;
var service = this.$el.find('.check_box_salon:checkbox:checked');
var chair = this.$el.find("#chair")[0].value;
var list_service = [];
var number = service.length;
for (var item = 0; item < (number); item++) {
var value = parseInt(service[item].attributes['service-id'].value);
list_service.push(value);
}
if (name == "" || date == "" || time == "" || phone == "" || email == "" || list_service.length == 0) {
alert("All fields are mandatory");
} else {
var colonIndex = time.indexOf(":"); // Find the index of ":"
var hours = time.substring(0, colonIndex);
var minutes = time.substring(colonIndex + 1)
var colon = time[colonIndex];
if (isNaN(hours) || isNaN(minutes) || colon != ':') {
alert("Select a valid Time");
} else {
var time_left = parseInt(hours);
var time_right = parseInt(minutes);;
if ((time_left < 25) && (time_right < 60) && (time_left >= 0) && (time_right >= 0)) {
rpc('/page/salon_details', {
name: name,
date: date,
salon_time: time,
phone: phone,
email: email,
chair: chair,
service_list: list_service
}).then( function(result){
if (JSON.parse(result).result == true){
window.location.href = "/page/salon_management/salon_booking_thank_you";
}
});
}
else {
alert("Select a valid time");
}
}
}
},
/** Website function to check already booked chairs and details **/
ClickCheckButton(ev){
var check_date = this.$el.find("#check_date").val();
if (check_date != "") {
rpc('/page/salon_check_date', {
check_date
}).then( function(order_details){
var x;
var total_orders = "";
var order = "";
var chair_name;
for (x in order_details) {
var chair_name = order_details[x]['name']
var i;
var lines = "";
for (i = 0; i < order_details[x]['orders'].length; i++) {
lines += '<tr><td style="background:#7c7bad;"><span>' + order_details[x]['orders'][i]['number'] +
'</span></td><td style="background:#7c7bad;"><span>' + order_details[x]['orders'][i]['start_time_only'] +
'</span></td><td style="background:#7c7bad;"><span>' + order_details[x]['orders'][i]['end_time_only'] + '</span></td></tr>'
}
order += '<div class="col-lg-4 s_title pt16 pb16"><div style="height: 200px!important; text-align: center;' +
'border: 1px solid #666;padding: 15px 0px;box-shadow: 7px 8px 5px #888888;background-color:#7c7bad;border-radius:58px;color:#fff;margin-bottom: 10px;">' +
'<span style="font-size: 15px;">' + chair_name + '</span>' +
'<br/><a style="color:#fff;font-size:15px;">Order Details</a>' +
'<div id="style-2" style="overflow-y:scroll;height:105px;padding-right:25px;padding-left:25px;margin-right:10px;">' +
'<table class="table"><th style="font-size:11px;background:#7c7bad;">Order No.</th><th style="font-size:11px;background:#7c7bad;">Start Time</th>' +
'<th style="font-size:11px;background:#7c7bad;">End Time</th><div><tbody style="font-size: 10px;">' +
lines + '</tbody></div></table></div></div></div>'
}
total_orders += '<div id="booking_chair_div" class="col-lg-12 s_title pt16 pb16 row">' + order + '</div>'
var res = document.getElementById('booking_chair_div')
res.innerHTML = "";
res.innerHTML = total_orders;
var date_value = 'DATE : <t>' + check_date + '</t>'
var date_field = document.getElementById('searched_date')
date_field.innerHTML = "";
date_field.innerHTML = date_value;
})
} else {
alert("Fill the Field");
}
}
});

96
salon_management/static/src/xml/salon_dashboard.xml

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Salon management dashboard template-->
<templates id="template" xml:space="preserve">
<t t-name="SalonSpaDashBoard">
<link rel="stylesheet"
href="/salon_management/static/src/css/salon_dashboard.css"/>
<div class="row main-section">
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 salon_spa_bookings salon salon_bookings"
t-on-click="show_bookings">
<div class="salon-card">
<div class="salon-card-body">
<div class="stat-widget-one">
<div class="stat-icon">
<i class="fa fa-calendar"/>
</div>
<div class="stat-content">
<div class="stat-text">Bookings</div>
<div class="stat-digit" t-ref="bookings_count">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 salon_spa_orders salon salon_orders"
t-on-click="show_orders">
<div class="salon-card">
<div class="salon-card-body">
<div class="stat-widget-one">
<div class="stat-icon">
<i class="fa fa-calendar"/>
</div>
<div class="stat-content">
<div class="stat-text">Salon Orders</div>
<div class="stat-digit" t-ref="orders_count">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 salon_spa_sales salon salon_sales"
t-on-click="show_sales">
<div class="salon-card">
<div class="salon-card-body">
<div class="stat-widget-one">
<div class="stat-icon">
<i class="fa fa-money"/>
</div>
<div class="stat-content">
<div class="stat-text">Recent Works</div>
<div class="stat-digit" t-ref="recent_count">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3-12 col-md-6 col-lg-3 salon_spa_clients salon salon_clients"
t-on-click="show_clients">
<div class="salon-card">
<div class="salon-card-body">
<div class="stat-widget-one">
<div class="stat-icon">
<i class="fa fa-user "/>
</div>
<div class="stat-content">
<div class="stat-text">Salon Clients</div>
<div class="stat-digit" t-ref="clients_count">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Dashboard chairs view-->
<article role="main" id="chairs_dashboard_view">
<t t-foreach="this.state.list" t-as="chair" t-key="chair['id']">
<div class="salon_chair" t-att-id="chair['id']"
t-att-value="chair['id']" t-on-click="chairs_click"
>
<h4 class="chair_name" t-att-id="chair['id']">
<t t-esc="chair['name']"/>
</h4>
<h2 class="chair_orders" t-att-id="chair['id']">
<t t-esc="chair['orders']"/>
</h2>
<i class="fa fa-cog chair_setting"
t-att-id="chair['name']"
t-on-click="settings_click"/>
</div>
</t>
</article>
</t>
</templates>

60
salon_management/views/res_config_settings_views.xml

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Res config settings view form-->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.Salon.Management</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="45"/>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//form" position="inside">
<div class="app_settings_block" data-string="Salon"
string="Salon" data-key="salon_management">
<h2>Booking Chairs(Choose the chair when its free)</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<div class="content-group">
<div class="row mt16">
<label string="Booking Chairs"
for="salon_booking_chair_ids"
class="col-md-3 o_light_label"/>
<field name="salon_booking_chair_ids"
widget="many2many_tags"/>
</div>
</div>
</div>
</div>
</div>
<h2>Holidays</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<div class="content-group">
<div class="row mt16">
<label string="Holidays"
for="salon_holiday_ids"
class="col-md-3 o_light_label"/>
<field name="salon_holiday_ids"
widget="many2many_tags"/>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<!-- Res config settings action-->
<record id="res_config_settings_action" model="ir.actions.act_window">
<field name="name">Settings</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'salon_management'}</field>
</record>
</odoo>

14
salon_management/views/res_partner_views.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Res partner view form-->
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit.salon.management</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='category_id']" position="after">
<field name="partner_salon"/>
</xpath>
</field>
</record>
</odoo>

276
salon_management/views/salon_booking_templates.xml

@ -0,0 +1,276 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Salon booking form-->
<template id="salon_booking_form" name="Salon Booking">
<t t-call="website.layout">
<div class="container chair_booking">
<div class="row s_nb_column_fixed ">
<div class="col-lg-6 s_title pt16 pb16">
<h3>
Working Time
</h3>
<table border="1">
<th>Day</th>
<th>Starting Time</th>
<th>Closing Time</th>
<tbody>
<t t-foreach="working_time"
t-as="working_time_obj">
<tr>
<td>
<span t-field="working_time_obj.name"/>
</td>
<td>
<span t-field="working_time_obj.from_time"
t-options='{"widget": "float_time"}'/>
</td>
<td>
<span t-field="working_time_obj.to_time"
t-options='{"widget": "float_time"}'/>
</td>
</tr>
</t>
</tbody>
</table>
</div>
<div class="col-lg-6 s_title pt16 pb16">
<h3>Book Your Chair</h3>
<form>
<div class="row s_nb_column_fixed">
<div class="col-lg-2 s_title pt16 pb16 field_booking_chair">
NAME
</div>
<div class="col-lg-10 s_title pt16 pb16">
<input type="text" id="name" required="1"
placeholder="Enter your Name"/>
</div>
</div>
<div class="row s_nb_column_fixed">
<div class="col-lg-2 s_title pt16 pb16 field_booking_chair">
SERVICES
</div>
<div class="col-lg-10 s_title pt16 pb16">
<div class="selection_service">
<div style="padding-left: 15px;padding-top: 15px;">
<t t-foreach="salon_services"
t-as="service">
<div>
<input type="checkbox"
t-att-service-id="service.id"
class="check_box_salon"/>
<label for="service.id"
t-esc="service.name"/>
</div>
</t>
</div>
</div>
</div>
</div>
<div class="row s_nb_column_fixed">
<div class="col-lg-2 s_title field_booking_chair">
DATE
</div>
<div class="col-lg-10 s_title pt16 pb16 row">
<div class="col-lg-4 s_title pt16 pb16">
<input type="date" id="date"
required="1"
placeholder="dd/mm/yyyy"
onkeyup="var v = this.value;if (v.match(/^\d{2}$/) !== null) {this.value = v + '/';} else if (v.match(/^\d{2}\/\d{2}$/) !== null) {this.value = v + '/';}"
maxlength="10"/>
</div>
<div class="col-lg-3 s_title pt16 pb16">
<input type="text" id="time"
required="1"
placeholder="HH:MM"
onkeyup="var v = this.value;if (v.match(/^\d{2}$/) !== null) {this.value = v + ':';}"
maxlength="5"/>
</div>
<div class="col-lg-5 s_title pt16 pb16"
style="font-size: 12px;">
(Select date &amp; time based on
availability of chair)
</div>
</div>
</div>
<div class="row s_nb_column_fixed">
<div class="col-lg-2 s_title pt16 pb16 field_booking_chair">
CHAIR
</div>
<div class="col-lg-10 s_title pt16 pb16 row">
<div class="col-lg-5 s_title pt16 pb16">
<select id="chair" required="True">
<t t-esc="chair_details"/>
<t t-foreach="chair_details"
t-as="chair">
<option t-att-value="chair.id"
t-esc="chair.name"/>
</t>
</select>
</div>
<div class="col-lg-7 s_title pt16 pb16"
style="font-size: 12px;">
(Select the chair that free in the
preferred time)
</div>
</div>
</div>
<div class="row s_nb_column_fixed">
<div class="col-lg-2 s_title pt16 pb16 field_booking_chair">
PHONE
</div>
<div class="col-lg-10 s_title pt16 pb16">
<input type="text" id="phone"
required="1"
placeholder="Enter your Phone number(eg:999**12345)"/>
</div>
</div>
<div class="row s_nb_column_fixed">
<div class="col-lg-2 s_title pt16 pb16 field_booking_chair">
E-MAIL
</div>
<div class="col-lg-10 s_title pt16 pb16">
<input type="email" id="email"
required="1"
placeholder="Enter your E-Mail Address(eg:example@gmail.com)"/>
</div>
</div>
<div class="row s_nb_column_fixed">
<div class="col-lg-12 s_title pt16 pb16">
<button type="button" id="send_button"
t-on-click="ClickSend"
class="btn btn-primary btn-md o_website_form_send">
Send
</button>
</div>
</div>
</form>
</div>
</div>
<div>
<section id="chair_details">
<div class="container">
<h3>Already Booked Chairs and Details</h3>
<hr/>
<div class="row s_nb_column_fixed">
<div class="col-lg-12 s_title pt16 pb16">
<div class="row">
<div class="col-lg-5 s_title pt16 pb16">
<div class="row">
<div class="col-lg-2 s_title pt16 pb16">
DATE :
</div>
<div class="col-lg-6 s_title pt16 pb16">
<input id="check_date"
type="date"
placeholder="Select a date"/>
</div>
<div class="col-lg-4 s_title pt16 pb16">
<button type="submit"
id="check_button"
t-on-click="ClickCheckButton"
class="btn btn-primary btn-md o_website_form_send">
Check
</button>
</div>
</div>
</div>
<div class="col-lg-3 s_title pt16 pb16">
<div class="col-lg-12 s_title pt16 pb16"
id="searched_date">
DATE :
<t t-esc="date_search"/>
</div>
</div>
<div class="col-lg-4 s_title pt16 pb16 row">
<div class="col-lg-4 s_title pt16 pb16">
HOLIDAYS :
</div>
<div t-foreach="holiday"
t-as="holiday_obj"
class="col-lg-2 s_title pt16 pb16">
<span t-field="holiday_obj.name"/>
<span>&amp;nbsp;</span>
</div>
</div>
</div>
</div>
</div>
<div id="booking_chair_div"
class="col-lg-12 s_title pt16 pb16 row">
<div t-foreach="chair_details" t-as="chair_obj"
class="col-lg-4 s_title pt16 pb16">
<div t-if="chair_obj.active_booking_chairs == 1">
<div style="height: 200px!important; text-align: center; border: 1px solid #666;padding: 15px 0px;box-shadow: 7px 8px 5px #888888;background-color:#7c7bad;border-radius:58px;color:#fff;margin-bottom: 10px;">
<span style="font-size: 15px;"
t-field="chair_obj.name"/>
<br/>
<a style="color:#fff;font-size:15px;">
Order Details
</a>
<div id="style-2"
style="overflow-y:scroll;height:105px;padding-right:25px;padding-left:25px;margin-right:10px;">
<table class="table">
<th style="font-size:11px;background:#7c7bad;">
Order No.
</th>
<th style="font-size:11px;background:#7c7bad;">
Start Time
</th>
<th style="font-size:11px;background:#7c7bad;">
End Time
</th>
<div>
<tbody style="font-size: 10px;">
<t t-foreach="order_details"
t-as="order_obj">
<t t-if="order_obj.chair_id.id == chair_obj.id">
<tr>
<td style="background:#7c7bad;">
<span t-field="order_obj.id"/>
.
</td>
<td style="background:#7c7bad;">
<span t-field="order_obj.start_time"
t-options='{"format": "HH:mm"}'/>
</td>
<td style="background:#7c7bad;">
<span t-field="order_obj.end_time"
t-options='{"format": "HH:mm"}'/>
</td>
</tr>
</t>
</t>
</tbody>
</div>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</t>
</template>
<!-- Template to view thank you message after register via portal-->
<template id="salon_booking_thank_you" name="Thank you">
<t t-call="website.layout">
<form>
<center>
<div>
<span class="d-block fa fa-4x fa-thumbs-up mx-auto rounded-circle bg-primary"/>
<br/>
<h1 class="text-center">Thank You!</h1>
<div class="pb16 pt16 s_hr" data-snippet="s_hr" data-name="Separator">
<hr class="mx-auto border-top w-50 border-dark text-center"/>
</div>
<p class="lead">Your request has been successfully submitted.
</p>
</div>
</center>
</form>
</t>
</template>
</odoo>

60
salon_management/views/salon_booking_views.xml

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Salon booking view form-->
<record id="salon_booking_view_form" model="ir.ui.view">
<field name="name">salon.booking.view.form</field>
<field name="model">salon.booking</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_approve_booking" invisible="state != 'draft'" string="Approve"
class="oe_highlight" type="object"/>
<button name="action_reject_booking" invisible="state != 'draft'" string="Reject"
class="oe_highlight" type="object"/>
<field name="state" widget="statusbar" statusbar_visible="draft,approved,rejected"/>
</header>
<sheet>
<group>
<group>
<field name="name"/>
<field name="phone"/>
<field name="service_ids" widget="many2many_tags"/>
</group>
<group>
<field name="time"/>
<field name="email"/>
<field name="chair_id"/>
<field name="company_id" invisible="1"/>
</group>
</group>
<notebook>
<page string="Current Bookings">
<field name="filtered_order_ids"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Salons booking view tree-->
<record id="salons_booking_view_tree" model="ir.ui.view">
<field name="name">salon.booking.view.tree</field>
<field name="model">salon.booking</field>
<field name="arch" type="xml">
<list decoration-info="state == 'draft'">
<field name="name"/>
<field name="time"/>
<field name="phone"/>
<field name="email"/>
<field name="state" widget="badge" decoration-info="state == 'draft'"
decoration-success="state == 'approved'" decoration-danger="state == 'rejected'"/>
</list>
</field>
</record>
<!-- Salon booking action-->
<record id="salon_booking_action" model="ir.actions.act_window">
<field name="name">Salon Bookings</field>
<field name="res_model">salon.booking</field>
<field name="view_mode">list,form</field>
</record>
</odoo>

62
salon_management/views/salon_chair_views.xml

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Salon chair action-->
<record id="salon_chair_action" model="ir.actions.act_window">
<field name="name">Chairs</field>
<field name="res_model">salon.chair</field>
<field name="view_mode">list,form</field>
</record>
<!-- Salon chair view form-->
<record id="salon_chair_view_form" model="ir.ui.view">
<field name="name">salon.chair.view.form</field>
<field name="model">salon.chair</field>
<field name="arch" type="xml">
<form>
<sheet>
<h1>
<field name="name"/>
</h1>
<group>
<group>
<field name="user_id" />
<field name="number_of_orders" invisible="1"/>
<field name="collection_today" invisible="1"/>
<field name="active_booking_chairs" invisible="1"/>
</group>
<group>
<field name="date"/>
</group>
</group>
<notebook>
<page string="Users">
<field name="user_line" mode="list">
<list string="Salon User Lines"
editable="bottom" delete="false">
<field name="read_only_checker"
column_invisible="1"/>
<field name="user_id"
domain="[('user_salon_active', '=', False)]"
readonly="read_only_checker"
options="{'no_create': True}"/>
<field name="start_date" readonly="read_only_checker"/>
<field name="end_date"/>
</list>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Salon chair view tree-->
<record id="salon_chair_view_tree" model="ir.ui.view">
<field name="name">salon.chair.view.tree</field>
<field name="model">salon.chair</field>
<field name="arch" type="xml">
<list>
<field name="name"/>
<field name="user_id"/>
</list>
</field>
</record>
</odoo>

37
salon_management/views/salon_management_menus.xml

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<!-- Salon management menus -->
<menuitem id="salon_management_menu_root" name="Salon"
groups="salon_management.group_salon_user"
action="salon_management_client_action"
web_icon="salon_management,static/description/icon.png"/>
<menuitem id="salon_dashboard_menu_action"
name="Dashboard" parent="salon_management_menu_root"
action="salon_management_client_action"
sequence="-100"/>
<menuitem id="salon_management_salon_root" name="Salon"
parent="salon_management_menu_root"/>
<menuitem id="salon_chair_menu_action" name="Chair"
parent="salon_management_salon_root"
action="salon_chair_action"/>
<menuitem id="salon_service_menu_action"
parent="salon_management_salon_root"
action="salon_service_action"/>
<menuitem id="salon_order_menu_action"
parent="salon_management_salon_root" name="Salon Orders"
action="salon_order_action"/>
<menuitem id="salon_booking_menu_action" name="Bookings"
parent="salon_management_salon_root"
action="salon_booking_action"/>
<menuitem id="salon_management_settings_menu_root"
parent="salon_management_menu_root" name="Configuration"/>
<menuitem id="salon_config_settings_menu_action"
parent="salon_management_settings_menu_root" name="Settings"
action="res_config_settings_action"/>
<menuitem id="salon_working_hours_menu_action"
parent="salon_management_settings_menu_root"
name="Working Hours" action="salon_working_hours_action"/>
</data>
</odoo>

269
salon_management/views/salon_order_views.xml

@ -0,0 +1,269 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Salon order view tree-->
<record id="salon_order_view_tree" model="ir.ui.view">
<field name="name">salon.order.view.tree</field>
<field name="model">salon.order</field>
<field name="arch" type="xml">
<list>
<field name="name"/>
<field name="chair_id"/>
<field name="start_time"/>
<field name="end_time"/>
<field name="currency_id" column_invisible="1"/>
<field name="time_taken_total" widget="float_time"/>
<field name="price_subtotal" widget="monetary"/>
<field name="stage_id"/>
</list>
</field>
</record>
<!-- Salon order view kanban-->
<record id="salon_order_view_kanban" model="ir.ui.view">
<field name="name">salon.order.view.kanban</field>
<field name="model">salon.order</field>
<field name="arch" type="xml">
<kanban default_group_by="stage_id"
class="o_kanban_small_column" quick_create="false"
on_create="quick_create">
<field name="color"/>
<field name="stage_id"/>
<field name="currency_id" invisible="1"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click">
<div class="o_dropdown_kanban dropdown">
<a role="button"
class="dropdown-toggle o-no-caret btn"
data-toggle="dropdown" href="#"
aria-label="Dropdown menu"
title="Dropdown menu">
<span class="fa fa-ellipsis-v"/>
</a>
<div class="dropdown-menu" role="menu">
<t t-if="widget.editable">
<a role="menuitem" type="edit"
class="dropdown-item">Edit...
</a>
</t>
<t t-if="widget.deletable">
<a role="menuitem" type="delete"
class="dropdown-item">Delete
</a>
</t>
<ul class="oe_kanban_colorpicker"
data-field="color"/>
</div>
</div>
<div class="oe_kanban_content">
<div>
<strong>
<field name="name"/>
</strong>
</div>
<div class="text-muted">
<a>Customer :</a>
<field name="customer_name"/>
<div style="float: right;">
<a>Chair :</a>
<field name="chair_id"/>
</div>
</div>
<div class="text-muted">
<a>Amount :</a>
<field name="price_subtotal"
widget="monetary"/>
</div>
<div class="text-muted">
<a>Total time taken :</a>
<field name="time_taken_total"
widget="float_time"/>
</div>
<div class="text-muted">
<a>Date :</a>
<field name="date"/>
</div>
</div>
<div class="oe_clear"/>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<!-- Salon order view form-->
<record id="salon_order_view_form" model="ir.ui.view">
<field name="name">salon.order.view.form</field>
<field name="model">salon.order</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_validate"
invisible="stage_id != 1 or validation_controller == True"
string="Validate" type="object"
class="oe_highlight"/>
<button name="action_confirm"
invisible="stage_id != 1 or validation_controller != True"
string="Confirm" type="object"
class="oe_highlight"/>
<button name="action_create_invoice"
invisible="stage_id != 2"
string="Create Invoice" type="object"
class="oe_highlight"/>
<button name="action_cancel" string="Cancel"
invisible="stage_id not in [1,2]"
type="object"/>
<button name="action_close"
invisible="stage_id != [1,2]" string="Close"
type="object"/>
<field name="stage_id" widget="statusbar"
domain="[('id','in',[1,2,4])]"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_view_invoice_salon"
type="object" class="oe_stat_button"
icon="fa-pencil-square-o"
invisible="stage_id not in [3,4]">
<field name="count" widget="statinfo"
string="Invoice"/>
</button>
</div>
<group>
<group>
<field name="partner_id"
domain="[('partner_salon','=',True)]"
readonly="stage_id != 1"/>
<field name="customer_name"
readonly="stage_id != 1"/>
<field name="chair_id"
domain="[('active_booking_chairs','!=',True)]"
readonly="stage_id != 1"
options="{'no_create': True}"/>
<field name="currency_id" invisible="1"/>
</group>
<group>
<field name="booking_identifier" invisible="1"/>
<field name="date" readonly="stage_id != 1"/>
<field name="start_time"
readonly="stage_id != 1"
invisible="stage_id != 1 or booking_identifier != True"/>
<field name="end_time" readonly="stage_id != 1"
invisible="stage_id != 1 or booking_identifier != True"/>
<field name="inv_stage_identifier"
invisible="1"/>
<field name="time_taken_total" invisible="1"/>
<field name="validation_controller"
invisible="1"/>
</group>
</group>
<notebook>
<page string="Order Lines">
<field name="order_line_ids" mode="list,kanban"
readonly="stage_id != 1">
<form string="Salon Order Lines">
<group>
<group>
<field name="service_id"/>
<field name="time_taken"/>
<field name="currency_id"
invisible="1"/>
<field name="price"
widget="monetary"/>
</group>
</group>
</form>
<list string="Salon Order Lines"
editable="bottom">
<field name="service_id"/>
<field name="time_taken"
widget="float_time"/>
<field name="currency_id"
column_invisible="1"/>
<field name="price" widget="monetary"/>
<field name="price_subtotal"
widget="monetary"/>
</list>
<kanban class="o_kanban_mobile">
<field name="service_id"/>
<field name="time_taken"/>
<field name="price_subtotal"
widget="monetary"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click">
<div class="row">
<div class="col-xs-12">
<strong>
<span>
<t t-esc="record.service_id.value"/>
</span>
</strong>
</div>
</div>
<div class="row">
<div class="col-xs-4 text-muted">
<span class="pull-right text-right">
<t t-esc="record.time_taken.value"/>
</span>
</div>
</div>
<div class="row">
<div class="col-xs-4 text-muted">
<span class="pull-right text-right">
<t t-esc="record.price_subtotal.value"/>
</span>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
<group class="oe_subtotal_footer oe_right"
colspan="2" name="salon_total">
<div class="oe_subtotal_footer_separator oe_inline o_td_label">
<label for="price_subtotal"/>
<button name="action_update_total"
string="(update)" type="object"
class="oe_edit_only oe_link"/>
</div>
<field name="price_subtotal" nolabel="1"
class="oe_subtotal_footer_separator"
widget="monetary"/>
</group>
<field name="note" class="oe_inline"
placeholder="Setup default terms and conditions in your company settings."/>
<div class="oe_clear"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Salon order action-->
<record id="salon_order_action" model="ir.actions.act_window">
<field name="name">Salon Orders</field>
<field name="res_model">salon.order</field>
<field name="view_mode">kanban,list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No data yet!
</p>
<p>Create order to manage salon orders.</p>
</field>
</record>
<!-- Salon active orders dashboard action -->
<record id="salon_active_orders_dashboard_action"
model="ir.actions.act_window">
<field name="name">Salon Orders</field>
<field name="res_model">salon.order</field>
<field name="view_mode">kanban,list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No Booking!
</p>
<p>Currently no booking for this chair</p>
</field>
<field name="domain">[('chair_id', '=', active_id)]</field>
</record>
</odoo>

39
salon_management/views/salon_service_views.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Salon service action-->
<record id="salon_service_action" model="ir.actions.act_window">
<field name="name">Services</field>
<field name="res_model">salon.service</field>
<field name="view_mode">list,form</field>
</record>
<!-- Salon service view form-->
<record id="salon_service_view_form" model="ir.ui.view">
<field name="name">salon.service.view.form</field>
<field name="model">salon.service</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name"/>
<field name="currency_id" invisible="1"/>
<field name="price" widget="monetary"/>
<field name="time_taken" widget="float_time"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- Salon service view tree-->
<record id="salon_service_view_tree" model="ir.ui.view">
<field name="name">salon.service.view.tree</field>
<field name="model">salon.service</field>
<field name="arch" type="xml">
<list editable="bottom">
<field name="name"/>
<field name="currency_id" column_invisible="1"/>
<field name="price" widget="monetary"/>
<field name="time_taken" widget="float_time"/>
</list>
</field>
</record>
</odoo>

43
salon_management/views/salon_working_hours.xml

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Salon working hours action-->
<record id="salon_working_hours_action" model="ir.actions.act_window">
<field name="name">Working Hours</field>
<field name="res_model">salon.working.hours</field>
<field name="view_mode">list,form</field>
</record>
<!-- Salon working hours view form-->
<record id="salon_working_hours_view_form" model="ir.ui.view">
<field name="name">salon.working.view.form</field>
<field name="model">salon.working.hours</field>
<field name="arch" type="xml">
<form>
<sheet>
<h1>
<field name="name"/>
</h1>
<group>
<group>
<field name="from_time" widget="float_time"/>
</group>
<group>
<field name="to_time" widget="float_time"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Salon working hours view tree-->
<record id="salon_working_hours_view_tree" model="ir.ui.view">
<field name="name">salon.working.view.tree</field>
<field name="model">salon.working.hours</field>
<field name="arch" type="xml">
<list editable="bottom">
<field name="name"/>
<field name="from_time" widget="float_time"/>
<field name="to_time" widget="float_time"/>
</list>
</field>
</record>
</odoo>
Loading…
Cancel
Save