Browse Source

Jan 25 : [ADD] Initial Commit 'venue_booking_management'

pull/313/head
RisvanaCybro 2 years ago
parent
commit
24a0370005
  1. 55
      venue_booking_management/README.rst
  2. 25
      venue_booking_management/__init__.py
  3. 77
      venue_booking_management/__manifest__.py
  4. 23
      venue_booking_management/controllers/__init__.py
  5. 264
      venue_booking_management/controllers/portal.py
  6. 96
      venue_booking_management/controllers/venue_booking_management.py
  7. 30
      venue_booking_management/data/confirmation_email_template_data.xml
  8. 60
      venue_booking_management/data/venue_type_data.xml
  9. 5
      venue_booking_management/doc/RELEASE_NOTES.md
  10. 28
      venue_booking_management/models/__init__.py
  11. 32
      venue_booking_management/models/amenities.py
  12. 34
      venue_booking_management/models/res_config_settings.py
  13. 87
      venue_booking_management/models/venue.py
  14. 489
      venue_booking_management/models/venue_booking.py
  15. 65
      venue_booking_management/models/venue_booking_line.py
  16. 54
      venue_booking_management/models/venue_lines.py
  17. 33
      venue_booking_management/models/venue_type.py
  18. 23
      venue_booking_management/report/__init__.py
  19. 80
      venue_booking_management/report/form_venue_booking_report.py
  20. 73
      venue_booking_management/report/venue_booking_report.py
  21. 186
      venue_booking_management/report/venue_booking_report_templates.xml
  22. 108
      venue_booking_management/report/venue_booking_report_views.xml
  23. 18
      venue_booking_management/report/venue_booking_rerports.xml
  24. 10
      venue_booking_management/security/ir.model.access.csv
  25. 22
      venue_booking_management/security/venue_booking_management_groups.xml
  26. 22
      venue_booking_management/security/venue_booking_secruity.xml
  27. BIN
      venue_booking_management/static/description/assets/icons/capture (1).png
  28. BIN
      venue_booking_management/static/description/assets/icons/check.png
  29. BIN
      venue_booking_management/static/description/assets/icons/chevron.png
  30. BIN
      venue_booking_management/static/description/assets/icons/cogs.png
  31. BIN
      venue_booking_management/static/description/assets/icons/consultation.png
  32. BIN
      venue_booking_management/static/description/assets/icons/ecom-black.png
  33. BIN
      venue_booking_management/static/description/assets/icons/education-black.png
  34. BIN
      venue_booking_management/static/description/assets/icons/hotel-black.png
  35. BIN
      venue_booking_management/static/description/assets/icons/img.png
  36. BIN
      venue_booking_management/static/description/assets/icons/license.png
  37. BIN
      venue_booking_management/static/description/assets/icons/lifebuoy.png
  38. BIN
      venue_booking_management/static/description/assets/icons/manufacturing-black.png
  39. BIN
      venue_booking_management/static/description/assets/icons/photo-capture.png
  40. BIN
      venue_booking_management/static/description/assets/icons/pos-black.png
  41. BIN
      venue_booking_management/static/description/assets/icons/puzzle.png
  42. BIN
      venue_booking_management/static/description/assets/icons/restaurant-black.png
  43. BIN
      venue_booking_management/static/description/assets/icons/service-black.png
  44. BIN
      venue_booking_management/static/description/assets/icons/trading-black.png
  45. BIN
      venue_booking_management/static/description/assets/icons/training.png
  46. BIN
      venue_booking_management/static/description/assets/icons/update.png
  47. BIN
      venue_booking_management/static/description/assets/icons/user.png
  48. BIN
      venue_booking_management/static/description/assets/icons/wrench.png
  49. BIN
      venue_booking_management/static/description/assets/misc/Cybrosys R.png
  50. 33
      venue_booking_management/static/description/assets/misc/email.svg
  51. 3
      venue_booking_management/static/description/assets/misc/phone.svg
  52. 9
      venue_booking_management/static/description/assets/misc/star (1) 2.svg
  53. 9
      venue_booking_management/static/description/assets/misc/support (1) 1.svg
  54. 6
      venue_booking_management/static/description/assets/misc/support-email.svg
  55. 17
      venue_booking_management/static/description/assets/misc/tick-mark.svg
  56. 9
      venue_booking_management/static/description/assets/misc/whatsapp 1.svg
  57. 33
      venue_booking_management/static/description/assets/misc/whatsapp.svg
  58. BIN
      venue_booking_management/static/description/assets/modules/1.png
  59. BIN
      venue_booking_management/static/description/assets/modules/2.jpg
  60. BIN
      venue_booking_management/static/description/assets/modules/3.gif
  61. BIN
      venue_booking_management/static/description/assets/modules/4.gif
  62. BIN
      venue_booking_management/static/description/assets/modules/5.jpg
  63. BIN
      venue_booking_management/static/description/assets/modules/6.jpg
  64. BIN
      venue_booking_management/static/description/assets/screenshots/1.png
  65. BIN
      venue_booking_management/static/description/assets/screenshots/10.png
  66. BIN
      venue_booking_management/static/description/assets/screenshots/11.png
  67. BIN
      venue_booking_management/static/description/assets/screenshots/12.png
  68. BIN
      venue_booking_management/static/description/assets/screenshots/13.png
  69. BIN
      venue_booking_management/static/description/assets/screenshots/14.png
  70. BIN
      venue_booking_management/static/description/assets/screenshots/15.png
  71. BIN
      venue_booking_management/static/description/assets/screenshots/16.png
  72. BIN
      venue_booking_management/static/description/assets/screenshots/17.png
  73. BIN
      venue_booking_management/static/description/assets/screenshots/18.png
  74. BIN
      venue_booking_management/static/description/assets/screenshots/19.png
  75. BIN
      venue_booking_management/static/description/assets/screenshots/2.png
  76. BIN
      venue_booking_management/static/description/assets/screenshots/20.png
  77. BIN
      venue_booking_management/static/description/assets/screenshots/21.png
  78. BIN
      venue_booking_management/static/description/assets/screenshots/22.png
  79. BIN
      venue_booking_management/static/description/assets/screenshots/23.png
  80. BIN
      venue_booking_management/static/description/assets/screenshots/24.png
  81. BIN
      venue_booking_management/static/description/assets/screenshots/25.png
  82. BIN
      venue_booking_management/static/description/assets/screenshots/26.png
  83. BIN
      venue_booking_management/static/description/assets/screenshots/27.png
  84. BIN
      venue_booking_management/static/description/assets/screenshots/28.png
  85. BIN
      venue_booking_management/static/description/assets/screenshots/29.png
  86. BIN
      venue_booking_management/static/description/assets/screenshots/3.png
  87. BIN
      venue_booking_management/static/description/assets/screenshots/30.png
  88. BIN
      venue_booking_management/static/description/assets/screenshots/31.png
  89. BIN
      venue_booking_management/static/description/assets/screenshots/32.png
  90. BIN
      venue_booking_management/static/description/assets/screenshots/33.png
  91. BIN
      venue_booking_management/static/description/assets/screenshots/34.png
  92. BIN
      venue_booking_management/static/description/assets/screenshots/35.png
  93. BIN
      venue_booking_management/static/description/assets/screenshots/36.png
  94. BIN
      venue_booking_management/static/description/assets/screenshots/37.png
  95. BIN
      venue_booking_management/static/description/assets/screenshots/38.png
  96. BIN
      venue_booking_management/static/description/assets/screenshots/39.png
  97. BIN
      venue_booking_management/static/description/assets/screenshots/4.png
  98. BIN
      venue_booking_management/static/description/assets/screenshots/40.png
  99. BIN
      venue_booking_management/static/description/assets/screenshots/41.png
  100. BIN
      venue_booking_management/static/description/assets/screenshots/42.png

55
venue_booking_management/README.rst

@ -0,0 +1,55 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Venue / Event Booking Management
================================
The 'Venue / Event Booking Management' is a core module which can manage any type of venue reservation.
Features
========
* Venue Booking creation.
* Allocate the Booking to different users.
* Integrated with Accounting module.
* Simple Workflow.
* Attractive Design.
Configuration
=============
* No additional configurations needed
License
-------
Gnu Affero General Public License, v3.0 (AGPL v3).
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer : (V16) Risvana AR,
(V17) Farhana Jahan PT,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>`__

25
venue_booking_management/__init__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import controllers
from . import models
from . import report
from . import wizards

77
venue_booking_management/__manifest__.py

@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': 'Venue / Event Booking Management',
'version': '17.0.1.0.0',
'summary': 'Core Module for Managing Different Types of '
'Venue/ Event Booking.',
'description': 'Core Module for Managing Different Types of '
'Venue/ Event Booking, Event Booking, Venue Booking, '
'Space Booking, Booking, Event, Venue, Wedding, Birthday, '
'Party, Hall Booking, Room Booking',
"category": "Account/Website",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'depends': ['base', 'account', 'website'],
'website': "https://www.cybrosys.com",
'data': [
'security/venue_booking_management_groups.xml',
'security/ir.model.access.csv',
'data/venue_type_data.xml',
'data/confirmation_email_template_data.xml',
'views/venue_booking_views.xml',
'views/venue_type_views.xml',
'views/amenities_views.xml',
'views/venue_views.xml',
'views/dashboard_views.xml',
'views/res_partner_views.xml',
'views/res_config_settings_views.xml',
'wizards/check_venue_availability_views.xml',
'report/venue_booking_report_views.xml',
'report/venue_booking_report_templates.xml',
'report/venue_booking_rerports.xml',
'wizards/venue_booking_analysis_views.xml',
'views/website_venue_booking_templates.xml',
'views/website_portal_templates.xml',
],
'assets': {
'web.assets_frontend': [
'venue_booking_management/static/src/css/website_page.css',
'venue_booking_management/static/src/js/website_venue_booking.js'
],
'web.assets_backend': [
'https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&amp;display=swap',
'venue_booking_management/static/src/css/venue_dashboard.css',
'venue_booking_management/static/src/scss/venue_booking.scss',
'venue_booking_management/static/src/xml/dashboard_templates.xml',
'venue_booking_management/static/src/js/action_manager.js',
'venue_booking_management/static/src/js/dashboard_action.js',
'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.0/chart.umd.min.js'
]
},
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'application': True,
}

23
venue_booking_management/controllers/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import portal
from . import venue_booking_management

264
venue_booking_management/controllers/portal.py

@ -0,0 +1,264 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from collections import OrderedDict
from datetime import timedelta
from odoo.addons.portal.controllers import portal
from odoo.addons.portal.controllers.portal import CustomerPortal, \
pager as portal_pager
from odoo import fields, http, _
from odoo.http import request
from odoo.osv import expression
from odoo.osv.expression import OR
class CustomerPortal(portal.CustomerPortal):
"""Class for Venue booking portal that gives the record and
counts of the Bookings"""
def _prepare_home_portal_values(self, counters):
""" Function for finding the number of document """
values = super()._prepare_home_portal_values(counters)
uid = request.env.user.partner_id.id
venue_booking_count = request.env['venue.booking'].search_count(
[('partner_id', '=', uid)])
values.update({'venue_booking_count': venue_booking_count})
return values
@http.route(['/my/venue_booking', '/my/venue_booking/page/<int:page>'],
type='http', auth='user',
website=True)
def create_venue_booking_management(self, page=1, date_begin=None,
date_end=None,
sortby=None, filterby=None,
search=None,
search_in='content', ):
""" Function to fetch booking records and pass to the portal template"""
uid = request.env.user.partner_id.id
venue_booking_management = request.env['venue.booking'].sudo().search(
[('partner_id', '=', uid)])
values = self._prepare_my_booking_values(page, date_begin, date_end,
sortby, filterby, search,
search_in)
# Pager
pager = portal_pager(**values['pager'])
venue = values['venue'](pager['offset'])
request.session['my_venue_booking_history'] = venue.ids[:100]
values.update({
'venue_booking_management': venue_booking_management,
'venues': venue,
'pager': pager,
})
return request.render(
"venue_booking_management.portal_my_venue_booking_documents",
values)
def _prepare_my_booking_values(self, page, date_begin, date_end, sortby,
filterby, search, search_in,
domain=None, url="/my/venue_booking"):
"""Add all event values to the portal. Which will return the
values event, page, pager, filter, sort, and search"""
values = self._prepare_portal_layout_values()
Venue = request.env['venue.booking']
domain = expression.AND([
domain or [],
self._get_booking_domain(),
])
searchbar_sortings = self._get_venue_booking_searchbar_sortings()
# default sort by order
if not sortby:
sortby = 'date'
order = searchbar_sortings[sortby]['order']
searchbar_filters = self._get_venue_booking_searchbar_filters()
# default filter by value
if not filterby:
filterby = 'all'
domain += searchbar_filters[filterby]['domain']
searchbar_inputs = self._get_venue_booking_searchbar_inputs()
if search and search_in:
domain += self._get_venue_booking_search_domain(search_in, search)
if date_begin and date_end:
domain += [('create_date', '>', date_begin),
('create_date', '<=', date_end)]
values.update({
'date': date_begin,
'venue': lambda pager_offset: self._get_grouped_venues(Venue,
domain,
order,
pager_offset),
'page_name': 'venue_booking',
'pager': {
"url": url,
"url_args": {'date_begin': date_begin, 'date_end': date_end,
'sortby': sortby, 'search_in': search_in,
'search': search},
"total": Venue.search_count(domain),
"page": page,
"step": self._items_per_page,
},
'default_url': url,
'searchbar_sortings': searchbar_sortings,
'sortby': sortby,
'searchbar_filters': OrderedDict(
sorted(searchbar_filters.items())),
'filterby': filterby,
'searchbar_inputs': searchbar_inputs,
'search_in': search_in,
'search': search,
})
return values
def _get_venue_page_view_values(self, venue, access_token, **kwargs):
"""Get the page view values"""
values = {
'venue': venue,
'page_name': 'venue_booking',
}
return self._get_page_view_values(venue, access_token, values,
'my_venue_booking_history', False,
**kwargs)
def _get_booking_domain(self):
"""Returns the booking that are in stage 'cancel' and 'draft'"""
return [('state', 'not in', ('cancel', 'closed'))]
def _get_venue_booking_searchbar_sortings(self):
"""Sort the booking based on the date and name"""
return {
'date': {'label': _('Date'), 'order': 'create_date desc'},
'name': {'label': _('Name'), 'order': 'name asc'},
}
def _get_venue_booking_searchbar_filters(self):
"""Filter the events by All, Last month, This Month, Last Week,
This Week, Last Year, This Year, Today and This Quarter"""
today = fields.Date.today()
this_month_start = today.replace(day=1)
this_quarter_start = today.replace(day=1, month=((
today.month - 1) // 3) * 3 + 1)
this_week_start = today - timedelta(days=today.weekday())
this_year_start = today.replace(month=1, day=1)
return {
'all': {'label': _('All'), 'domain': []},
'last_month': {
'label': _('Last Month'),
'domain': [('create_date', '>=',
(this_month_start - timedelta(days=30)).strftime(
'%Y-%m-%d')),
('create_date', '<=',
(this_month_start - timedelta(days=1)).strftime(
'%Y-%m-%d'))]
},
'this_month': {
'label': _('This Month'),
'domain': [
(
'create_date', '>=',
this_month_start.strftime('%Y-%m-%d')),
('create_date', '<=', today.strftime('%Y-%m-%d'))]
},
'last_week': {
'label': _('Last Week'),
'domain': [('create_date', '>=',
(this_week_start - timedelta(days=7)).strftime(
'%Y-%m-%d')),
('create_date', '<=',
(this_week_start - timedelta(days=1)).strftime(
'%Y-%m-%d'))]
},
'this_week': {
'label': _('This Week'),
'domain': [
(
'create_date', '>=',
this_week_start.strftime('%Y-%m-%d')),
('create_date', '<=', today.strftime('%Y-%m-%d'))]
},
'last_year': {
'label': _('Last Year'),
'domain': [('create_date', '>=',
(this_year_start - timedelta(days=365)).strftime(
'%Y-%m-%d')),
('create_date', '<=',
(this_year_start - timedelta(days=1)).strftime(
'%Y-%m-%d'))]
},
'this_year': {
'label': _('This Year'),
'domain': [
(
'create_date', '>=',
this_year_start.strftime('%Y-%m-%d')),
('create_date', '<=', today.strftime('%Y-%m-%d'))]
},
'today': {
'label': _('Today'),
'domain': [('create_date', '=', today.strftime('%Y-%m-%d'))]
},
'this_quarter': {
'label': _('This Quarter'),
'domain': [
('create_date', '>=',
this_quarter_start.strftime('%Y-%m-%d')),
('create_date', '<=', today.strftime('%Y-%m-%d'))]
}
}
def _get_venue_booking_search_domain(self, search_in, search):
"""Returns the events for the given search(If we have not entered
the full name which will also gives the output"""
search_domain = []
if search_in == 'all':
search_domain.append([('name', 'ilike',
f'{search}%')])
search_domain.append([('phone', 'ilike',
f'{search}%')])
if search_in in ('venue', 'all'):
search_domain.append([('venue_id', 'ilike',
f'{search}%')])
return OR(search_domain)
def _get_venue_booking_searchbar_inputs(self):
"""Which will returns a dictionary of values by the search contents
as Search in All, in Content, Search in states, Search in Venues"""
values = {
'all': {'input': 'all', 'label': _('Search in All'), 'order': 1},
'venue': {'input': 'venue', 'label': _('Search in Venue'),
'order': 2},
}
return dict(sorted(values.items(), key=lambda item: item[1]["order"]))
def _get_grouped_venues(self, Venue, domain, order, pager_offset, ):
"""Returns the grouped venues for a given domain"""
venues = Venue.search(domain, order=order, limit=self._items_per_page,
offset=pager_offset)
return venues
@http.route(['/my/booking_data/<int:record>'], type='http',
auth="user", website=True)
def portal_my_venue_booking(self, record):
""" Function to fetch data of selected visitors record and pass to
the portal template"""
booking_record = request.env['venue.booking'].sudo().browse(record)
return http.request.render(
'venue_booking_management.booking_portal_form',
{'booking_record': booking_record,
'page_name': 'venue_booking_management_record'})

96
venue_booking_management/controllers/venue_booking_management.py

@ -0,0 +1,96 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
import json
from odoo import fields, http
from odoo.http import content_disposition, request
from odoo.http import serialize_exception as _serialize_exception
from odoo.tools import html_escape
class XLSXReportController(http.Controller):
"""Controller Class for xlsx report"""
@http.route('/venue_xlsx_reports', type='http', auth='user',
methods=['POST'])
def get_report_xlsx(self, model, options, output_format, report_name):
"""Method for passing data to xlsx report"""
uid = request.session.uid
report_obj = request.env[model].with_user(uid)
options = json.loads(options)
try:
if output_format == 'xlsx':
response = request.make_response(
None,
headers=[('Content-Type', 'application/vnd.ms-excel'), (
'Content-Disposition',
content_disposition(report_name + '.xlsx'))])
report_obj.get_xlsx_report(options, response)
return response
except Exception as err:
exception = _serialize_exception(err)
error = {
'code': 200,
'message': 'Odoo Server Error',
'data': exception
}
return request.make_response(html_escape(json.dumps(error)))
class VenueBookingController(http.Controller):
"""Class to add Venue booking menu in website"""
@http.route('/venue/booking', type='http', auth='public', website=True)
def venue_booking(self):
"""Function to render venue booking values to XML"""
venue_ids = request.env['venue'].sudo().search([])
state_ids = request.env['res.country.state'].sudo().search([])
country_ids = request.env['res.country'].sudo().search([])
return http.request.render(
'venue_booking_management.venue_booking_page',
{'venue_ids': venue_ids,
'state_ids': state_ids,
'country_ids': country_ids})
@http.route('/booking/submit', type='http', auth='public', website=True)
def booking_success_page(self, **post):
"""Function to create booking and return to success page"""
partner_id = request.env['res.partner'].sudo().create({
'name': post.get('name'),
'mobile': post.get('mobile_no'),
'city': post.get('city'),
'state_id': post.get('state'),
'country_id': post.get('country')
})
venue_id = request.env['venue'].browse(int(post.get('venue_type')))
values = {
'partner_id': partner_id.id,
'venue_id': venue_id.id,
'start_date': post.get('from_date'),
'end_date': post.get('to_date'),
'booking_type': post.get('booking_type'),
'date': fields.Date.today()
}
booking_id = request.env['venue.booking'].sudo().create(values)
return request.render(
'venue_booking_management.venue_booking_success_page',
{'partner_id': partner_id,
'booking_id': booking_id})

30
venue_booking_management/data/confirmation_email_template_data.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Email to notify the Customer to Confirm the Venue Booking -->
<record id="mail_template_notify_venue_booking" model="mail.template">
<field name="name">Confirmed Venue Booking</field>
<field name="subject">Venue booking: Received the Venue Booking for
{{ object.venue_id.name }}
</field>
<field name="model_id"
ref="venue_booking_management.model_venue_booking"/>
<field name="email_from">{{ (object.env.user.login) }}
</field>
<field name="body_html">
<![CDATA[
<p>
Dear customer <t t-out="object.partner_id.name"/>,<br/><br/>
We have received a booking for the venue
<strong><t t-out="object.venue_id.name"/></strong>. Please proceed
with necessary actions.
<br/><br/>
Thank You
</p>
]]>
</field>
<field name="lang">{{ object.partner_id.lang or '' }}</field>
<field name="auto_delete" eval="False"/>
</record>
</data>
</odoo>

60
venue_booking_management/data/venue_type_data.xml

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Venue Types Records-->
<record id="venue_type1" model="venue.type">
<field name="name">Conference centers</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type1.jpeg"/>
</record>
<record id="venue_type2" model="venue.type">
<field name="name">Meeting Room</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type2.jpeg"/>
</record>
<record id="venue_type3" model="venue.type">
<field name="name">Convention centers</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type3.jpeg"/>
</record>
<record id="venue_type4" model="venue.type">
<field name="name">Social clubs and lounges</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type4.jpeg"/>
</record>
<record id="venue_type5" model="venue.type">
<field name="name">Mini Conference centers</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type5.jpeg"/>
</record>
<record id="venue_type6" model="venue.type">
<field name="name">Stadiums</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type6.jpeg"/>
</record>
<record id="venue_type7" model="venue.type">
<field name="name">Community centers</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type7.jpeg"/>
</record>
<record id="venue_type8" model="venue.type">
<field name="name">Resorts</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type8.jpeg"/>
</record>
<record id="venue_type9" model="venue.type">
<field name="name">Auditorium</field>
<field name="image" type="base64"
file="venue_booking_management/static/img/venue_type9.jpeg"/>
</record>
<!-- Sequence Number Generation for Venue Booking-->
<record id="sequence_venue_booking" model="ir.sequence">
<field name="name">Venue Booking</field>
<field name="code">venue.booking.sequence</field>
<field name="suffix">%(day)s/%(month)s/%(year)s</field>
<field name="prefix">VENUE-</field>
<field name="number_increment">1</field>
<field name="padding">3</field>
</record>
</data>
</odoo>

5
venue_booking_management/doc/RELEASE_NOTES.md

@ -0,0 +1,5 @@
## Module <venue_booking_management>
#### 23.01.2024
#### Version 17.0.1.0.0
#### ADD
- Initial Commit for Venue / Event Booking Management

28
venue_booking_management/models/__init__.py

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import amenities
from . import res_config_settings
from . import venue
from . import venue_booking
from . import venue_booking_line
from . import venue_lines
from . import venue_type

32
venue_booking_management/models/amenities.py

@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNproduct_id.ESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import fields, models
class Amenities(models.Model):
"""Model for managing the Amenities"""
_name = 'amenities'
_inherit = ['mail.thread', 'mail.activity.mixin']
_description = 'Amenities'
name = fields.Char(string="Name", help="Name of the Amenities")
amount = fields.Float(string='Amount', help="Amount of the Amenities")

34
venue_booking_management/models/res_config_settings.py

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
"""Inherit the model res.config.settings to add Additional fields"""
_inherit = 'res.config.settings'
is_extra = fields.Boolean(string='Apply Extra Amount',
config_parameter='venue_booking_management.is_extra',
help="Enable, if extra charge want to add")
extra_amount = fields.Float(string='Extra Amount',
config_parameter='venue_booking_management.extra_amount',
help='Enter extra amount/KM')

87
venue_booking_management/models/venue.py

@ -0,0 +1,87 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import api, fields, models
class Venue(models.Model):
"""Model for managing the Venue that used to add new fields and
functions to create the Venue"""
_name = 'venue'
_inherit = ['mail.thread', 'mail.activity.mixin']
_description = 'Venue'
name = fields.Char(string="Name", help="Name of the venue type",
required=True)
image = fields.Binary(string="Image", attachment=True,
related="venue_type_id.image",
help="This field holds the image used as "
"image for the event, limited to 1080x720px.")
venue_type_id = fields.Many2one('venue.type',
string='Venue Type', required=True,
help='Used to choose the type of the '
'particular venue')
venue_location = fields.Char(string='Location', required=True,
help='The venue location for Booking')
capacity = fields.Integer(string='Capacity',
help='The capacity of the venue')
seating = fields.Integer(string='Seating', help='The Seating of the venue')
venue_charge_hour = fields.Float(string='Charge Per Hour',
help='The charge per hour of the venue')
venue_charge_day = fields.Float(string='Charge Per Day',
help='The charge per day of the venue')
additional_charge_hour = fields.Float(string=' Additional Charge Per Hour',
help='The charge per hour of the '
'venue')
additional_charge_day = fields.Float(string='Additional Charge Per Day',
help='The charge per day of the venue')
venue_count = fields.Integer(string="# of Events",
compute='_compute_venue_count',
help='Compute field for calculate the '
'venue count')
open_time = fields.Float(string=' Open Time', help='Open time of the venue')
closed_time = fields.Float(string=' Close Time',
help='Close time of the venue')
venue_line_ids = fields.One2many('venue.lines',
'venue_id', string='Amenities',
help='Amenities for the venue')
price_subtotal = fields.Float(string='Total',
help='Total price of the venue',
compute='_compute_price_subtotal',
readonly=True, store=True)
@api.depends('venue_line_ids', 'venue_line_ids.sub_total')
def _compute_price_subtotal(self):
"""Compute function for calculating the Amenities Price Subtotal"""
self.price_subtotal = sum(
item.sub_total for item in self.venue_line_ids)
def _compute_venue_count(self):
"""Compute function for calculating the venue count"""
for records in self:
venues = self.env['venue.booking'].search([
('venue_id', '=', records.id)])
records.venue_count = len(venues)
def get_venue_type_action(self):
"""Get the venue type action for the venue bookings"""
return self._get_action(
'venue_booking_management.venue_booking_action_view_kanban')

489
venue_booking_management/models/venue_booking.py

@ -0,0 +1,489 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from markupsafe import Markup
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
class VenueBooking(models.Model):
"""Model for managing the Venue Booking"""
_name = 'venue.booking'
_inherit = ['mail.thread', 'mail.activity.mixin']
_description = 'Venue Reservation'
name = fields.Char(string="Name", help="Name of the venue type")
ref = fields.Char(string='Ref', readonly=True,
help="Name of the venue that created as sequencing")
venue_id = fields.Many2one('venue', string='Venue',
help="Venue for the Event", required=True)
venue_type_id = fields.Many2one('venue.type',
string='Venue Type',
related='venue_id.venue_type_id',
readonly=True,
help='Used to choose the type of the '
'particular venue')
image = fields.Binary(string="Image", attachment=True,
related='venue_type_id.image',
help="This field holds the image used as "
"image for the event, limited to 1080x720px.")
partner_id = fields.Many2one('res.partner', string="Customer",
required=True,
help='Used to Choose the Booking Person')
date = fields.Date(string="Date", default=fields.Date.today, required=True,
help='Date field for booking the Venue')
currency_id = fields.Many2one('res.currency', readonly=True,
string='Currency',
default=lambda self:
self.env.user.company_id.currency_id,
help='Currency field for booking Venue')
start_date = fields.Datetime(string="Start Date",
default=lambda self: fields.datetime.now(),
required=True,
help='Venue Booking Start Date')
end_date = fields.Datetime(string="End Date", required=True,
help='Venue Booking End Date')
state = fields.Selection([('draft', 'Draft'),
('confirm', 'Confirmed'),
('invoice', 'Invoiced'),
('close', 'Close'), ('cancel', 'Canceled')],
string="State", default="draft",
help="State of venue booking")
booking_type = fields.Selection([('day', 'Day'),
('hour', 'Hours')], string='Booking Type',
default='day',
help='The selection field for Booking Type')
venue_booking_line_ids = fields.One2many('venue.booking.line',
'venue_booking_id',
string="Venues",
help='Booking Line for the '
'given venue')
note = fields.Text(string='Terms and Conditions',
help='The note field for Venue Booking')
pending_invoice = fields.Boolean(string="Invoice Pending",
compute='_compute_pending_invoice',
help='Find out is there any pending '
'invoice')
total = fields.Monetary(string="Total Amount", store=True,
compute='_compute_total_amount',
help='Total amount for the Venue Booking')
booking_charge_per_day = fields.Float(string="Booking Charge Per Day",
related='venue_id.venue_charge_day',
help='Field for adding Booking '
'Charge Per Day')
booking_charge_per_hour = fields.Float(string="Booking Charge Per Hour",
related='venue_id.venue_charge_hour',
help='Field for adding Booking '
'Charge Per hour')
booking_charge = fields.Float(string="Venue Amenities Charge",
compute='_compute_booking_charge',
help='Compute the total Booking cost '
'includes the amenities')
days_difference = fields.Integer(string='Days Difference',
compute='_compute_days_difference',
help='Number of Days to Booking the venue')
invoice_count = fields.Integer(string="Invoice Count",
compute='_compute_invoice_count',
help='Total invoice count')
is_additional_charge = fields.Boolean(string="Add Extra Charge?",
help='Add additional charge '
'for the booking')
is_extra_check = fields.Boolean(string="Checks Additional Charges",
help='Checks additional charge '
'is enabled on settings',
default=lambda self: self.env[
'ir.config_parameter'].sudo().get_param(
'venue_booking_management.is_extra'))
amenity_line_ids = fields.One2many('venue.booking.line',
'venue_booking_id',
string="Included Amenities",
help='Booking Line for the given venue')
@api.constrains('venue_booking_line_ids')
def _check_venue_booking_line_ids(self):
"""Check if the venue bookings line contains already taken amenities"""
amenities_list = []
name_list = []
if self.venue_id.venue_line_ids:
amenities = self.venue_id.venue_line_ids.mapped('amenities_id')
for line in self.venue_booking_line_ids:
if line.amenity_id in amenities:
amenities_list.append(line.amenity_id)
name_list.append(line.amenity_id.name)
if amenities_list:
names = ', '.join(name_list)
raise ValidationError(
_("Amenities %s are already Include in Your Venue Booking %s"
% (str(names), str(self.venue_id.name))))
@api.model
def create(self, values):
"""Create method for sequencing and checking dates while Booking the
Venues"""
partner_name = self.env['res.partner'].browse(
values['partner_id']).name
if values['start_date'] >= values['end_date']:
raise UserError(_('Start date must be less than End date'))
values['name'] = '%s- %s' % (partner_name, values['date'])
values['ref'] = self.env['ir.sequence'].next_by_code(
'venue.booking.sequence')
res = super().create(values)
return res
@api.onchange('start_date', 'end_date')
def _onchange_booking_dates(self):
"""Checking dates while Booking the Venues based on the changes
of the Dates"""
if self.venue_id:
booking = self.env['venue.booking'].search(
[('start_date', '<', self.end_date),
('end_date', '>', self.start_date),
('venue_id', '=', self.venue_id.id)])
if booking:
raise ValidationError(
"Venue is not available for the selected time range.")
@api.depends('start_date', 'end_date')
def _compute_days_difference(self):
"""Compute the difference between start and end dates for
Calculating the days"""
for record in self:
if record.start_date and record.end_date:
delta = record.end_date - record.start_date
record.days_difference = delta.days
else:
record.days_difference = 0
@api.depends('booking_charge', 'venue_id')
def _compute_booking_charge(self):
"""Compute booking charge for the given venue with the Amenities"""
for rec in self:
rec.booking_charge = rec.venue_id.price_subtotal if rec.venue_id else 0.0
@api.depends('venue_booking_line_ids', 'venue_booking_line_ids.state')
def _compute_pending_invoice(self):
"""Compute function for finding the pending Invoices"""
for pending in self:
pending.pending_invoice = any(
not line.is_invoiced and line.state == "done" for line in
pending.venue_booking_line_ids)
@api.depends('venue_booking_line_ids.sub_total', 'booking_charge_per_hour',
'booking_charge_per_day')
def _compute_total_amount(self):
"""Compute total amount of bookings with the Charge of the Particular
venue"""
total = sum(item.sub_total for item in self.venue_booking_line_ids)
for rec in self:
if rec.booking_type == 'day':
total += (rec.booking_charge_per_day * rec.days_difference)
if rec.venue_id.additional_charge_day != 0.0:
total += rec.venue_id.additional_charge_day
elif rec.booking_type == 'hour':
total += (rec.booking_charge_per_hour * rec.days_difference)
if rec.venue_id.additional_charge_hour != 0.0:
total += rec.venue_id.additional_charge_hour
rec.total = total + rec.booking_charge
@api.constrains('start_date', 'end_date', 'venue_id')
def check_date_overlap(self):
"""Check the date overlap between the start and end dates"""
for booking in self:
overlapping_bookings = self.env['venue.booking'].search([
('venue_id', '=', booking.venue_id.id),
('start_date', '<', booking.end_date),
('end_date', '>', booking.start_date),
('id', '!=', booking.id), # Exclude the current record itself
])
if overlapping_bookings:
raise ValidationError(
"Booking dates overlap with existing bookings.")
def action_booking_confirm(self):
"""Button action to confirm"""
for booking in self:
bookings = self.env['venue.booking'].search([
('venue_id', '=', booking.venue_id.id),
('start_date', '<', booking.end_date),
('end_date', '>', booking.start_date),
('id', '!=', booking.id), # Exclude the current record itself
])
if bookings:
raise ValidationError(
"Booking dates overlap with existing bookings.")
else:
self.state = "confirm"
def action_reset_to_draft(self):
"""Button action to reset"""
self.state = "draft"
def action_send_confirmation_mail(self):
"""Button action to send confirmation mail"""
template = self.env.ref(
'venue_booking_management.mail_template_notify_venue_booking').sudo()
template.send_mail(self._origin.id, force_send=True,
email_values={
'email_to': self.partner_id.email})
for rec in self:
body = Markup(
"<p>%(greeting)s<br/><br/>%(content)s<br/><br/>%(conclude)s<p>") % {
'greeting': _("Dear %s", rec.partner_id.name),
'content': _(
"We have received a booking for the venue %s.Please proceed with necessary actions.",
rec.venue_id.name),
'conclude': _('Thank You'),
}
rec.message_post(body=body)
def action_booking_invoice_create(self):
"""Button action to create related invoice"""
invoice_id = self.env['account.move'].search(
[('invoice_origin', '=', self.ref), ('state', '=', 'draft')])
amenity_lists = []
def add_charge(name, price_unit, quantity=1):
amenity_lists.append({
'name': name,
'price_unit': price_unit,
'quantity': quantity,
})
if self.booking_type == 'day':
total = self.booking_charge_per_day + self.venue_id.additional_charge_day
elif self.booking_type == 'hour':
total = self.booking_charge_per_hour + self.venue_id.additional_charge_hour
else:
total = 0
add_charge('Amenities charge', self.booking_charge)
add_charge('Booking Charges', total)
for rec in self.venue_booking_line_ids:
add_charge(rec.amenity_id.name, rec.amount, rec.quantity)
if self.is_additional_charge:
is_extra = self.env['ir.config_parameter'].sudo(). \
get_param('venue_booking_management.is_extra')
if is_extra:
amount = self.env['ir.config_parameter'].sudo(). \
get_param('venue_booking_management.extra_amount')
amenity_lists.append({
'name': 'Extra charges',
'price_unit': amount,
'quantity': '1',
})
invoice_vals = {
'move_type': 'out_invoice',
'partner_id': self.partner_id.id,
'invoice_origin': self.ref,
'invoice_line_ids': [(0, 0, line) for line in amenity_lists],
}
if not invoice_id:
invoice = self.env['account.move'].create([invoice_vals])
self.state = "invoice"
return {
'name': 'Invoice',
'view_mode': 'form',
'res_id': invoice.id,
'res_model': 'account.move',
'type': 'ir.actions.act_window',
'target': 'current',
}
else:
# Unlink existing lines
invoice_id.invoice_line_ids.unlink()
invoice_id.write(
{'invoice_line_ids': [(0, 0, line) for line in amenity_lists]})
self.state = "invoice"
return {
'name': 'Invoice',
'view_mode': 'form',
'res_id': invoice_id.id,
'res_model': 'account.move',
'type': 'ir.actions.act_window',
'target': 'current',
}
def action_view_invoice(self):
"""Smart button to view the Corresponding Invoices for the
Venue Booking"""
return {
'type': 'ir.actions.act_window',
'name': 'Invoice',
'view_mode': 'tree,form',
'res_model': 'account.move',
'target': 'current',
'domain': [('invoice_origin', '=', self.ref)],
'context': {"create": False},
}
def _compute_invoice_count(self):
"""Function to count invoice"""
for record in self:
record.invoice_count = self.env['account.move']. \
search_count([('invoice_origin', '=', self.ref)])
def action_booking_cancel(self):
"""Button action to move the cancel state"""
self.state = "cancel"
def action_booking_close(self):
"""Button action to close the records"""
if any(not line.is_invoiced for line in self.venue_booking_line_ids):
raise ValidationError(_('You can close The Booking only when all '
'Procedure is Done and Invoiced'))
else:
self.state = "close"
@api.model
def get_total_booking(self):
"""Function to get total booking, distance and invoice amount details"""
total_booking = self.env['venue.booking'].search_count([])
booking_ids = self.env['venue.booking'].search(
[('state', 'not in', ['draft', 'cancel', 'close'])])
invoice_ids = self.env['venue.booking']. \
search([('state', '=', 'invoice')]).mapped('total')
venue_ids = self.env['venue'].search_count([])
return {'total_booking': total_booking,
'total_invoice': sum(invoice_ids),
'total_amount': sum(booking_ids.mapped('total')),
'total_venue': venue_ids}
@api.model
def get_top_venue(self):
"""Function to return top venue and customer details query to js"""
self.env.cr.execute('''select fv.name,count(tb.name) from venue_booking as tb
inner join venue as fv on fv.id = tb.venue_id
group by fv.name order by count(tb.name) desc limit 10''')
venue = self.env.cr.dictfetchall()
self.env.cr.execute('''select pr.name,count(tb.name) from venue_booking as tb
inner join res_partner as pr on pr.id = tb.partner_id
group by pr.name order by count(tb.name) desc limit 10''')
customer = self.env.cr.dictfetchall()
self.env.cr.execute('''select tb.ref, pr.name, tb.date from
venue_booking as tb
inner join res_partner as pr on pr.id = tb.partner_id
where tb.date >= '%s' and tb.state = 'invoice'
order by tb.date''' % fields.date.today())
upcoming = self.env.cr.dictfetchall()
return {'venue': venue, 'customer': customer, 'upcoming': upcoming}
@api.model
def get_booking_analysis(self):
"""Function to return customer details to js for graph view"""
self.env.cr.execute('''select pr.name,sum(tb.total) from venue_booking as tb
inner join res_partner as pr on pr.id = tb.partner_id
group by pr.name order by sum(tb.total)''')
booking = self.env.cr.dictfetchall()
count = []
customer = []
for record in booking:
customer.append(record.get('name'))
count.append(record.get('sum'))
value = {'name': customer, 'count': count}
return value
@api.model
def get_venue_analysis(self):
"""Function to return truck details to js for graph view"""
self.env.cr.execute('''select fv.name,sum(tb.total) from venue_booking as tb
inner join venue as fv on fv.id = tb.venue_id
group by fv.name order by sum(tb.total)''')
booking = self.env.cr.dictfetchall()
count = []
customer = []
for record in booking:
customer.append(record.get('name'))
count.append(record.get('sum'))
return {'name': customer, 'count': count}
@api.model
def get_select_filter(self, option):
"""Function to filter data on the bases of the year"""
if option == 'year':
create_date = '''create_date between (now() - interval '1 year') and now()'''
elif option == 'month':
create_date = '''create_date between (now() - interval '1 months') and now()'''
elif option == 'week':
create_date = '''create_date between (now() - interval '7 day') and now()'''
elif option == 'day':
create_date = '''create_date between (now() - interval '1 day') and now()'''
self.env.cr.execute('''select count(*) from venue_booking
where %s''' % create_date)
booking = self.env.cr.dictfetchall()
self.env.cr.execute('''select sum(total) from venue_booking
where %s''' % create_date)
amount = self.env.cr.dictfetchall()
self.env.cr.execute('''select sum(total) from venue_booking
where state = 'invoice' and %s''' % create_date)
invoice = self.env.cr.dictfetchall()
self.env.cr.execute('''select count(*) from venue
where %s''' % create_date)
venue_count = self.env.cr.dictfetchall()
self.env.cr.execute('''SELECT fv.name, COUNT(tb.name) AS name_count
FROM venue_booking AS tb
INNER JOIN venue AS fv ON fv.id = tb.venue_id
where tb.%s
GROUP BY fv.name
ORDER BY name_count DESC
LIMIT 10''' % create_date)
venue = self.env.cr.dictfetchall()
self.env.cr.execute('''SELECT pr.name, COUNT(tb.name) AS name_count
FROM venue_booking AS tb
INNER JOIN res_partner AS pr ON pr.id = tb.partner_id
where tb.%s
GROUP BY pr.name
ORDER BY name_count DESC
LIMIT 10''' % create_date)
customer = self.env.cr.dictfetchall()
self.env.cr.execute('''SELECT pr.name, COUNT(pr.name) AS count, SUM(tb.total) AS total_sum
FROM venue_booking AS tb
INNER JOIN res_partner AS pr ON pr.id = tb.partner_id
WHERE tb.%s
GROUP BY pr.name
''' % create_date)
cust_invoice = self.env.cr.dictfetchall()
cust_invoice_name = []
cust_invoice_sum = []
cust_invoice_count = []
for record in cust_invoice:
cust_invoice_name.append(record.get('name'))
cust_invoice_count.append(record.get('count'))
cust_invoice_sum.append(record.get('sum'))
self.env.cr.execute('''SELECT fv.name, SUM(tb.total) AS total_sum
FROM venue_booking AS tb
INNER JOIN venue AS fv ON fv.id = tb.venue_id
where tb.%s
GROUP BY fv.name;
''' % create_date)
truck_invoice = self.env.cr.dictfetchall()
truck_invoice_name = []
truck_invoice_sum = []
for record in truck_invoice:
truck_invoice_name.append(record.get('name'))
truck_invoice_sum.append(record.get('total_sum'))
return {'booking': booking, 'amount': amount,
'invoice': invoice, 'venue': venue, 'venue_count': venue_count,
'customer': customer,
'cust_invoice_name': cust_invoice_name,
'cust_invoice_count': cust_invoice_count, 'cust_invoice_sum':
cust_invoice_sum, 'truck_invoice_name': truck_invoice_name,
'truck_invoice_sum': truck_invoice_sum,
}

65
venue_booking_management/models/venue_booking_line.py

@ -0,0 +1,65 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import api, fields, models
class VenueBookingLine(models.Model):
"""Model to manage the Venue Booking lines of the Venue Reservation"""
_name = 'venue.booking.line'
_description = "Venue Booking"
venue_booking_id = fields.Many2one('venue.booking',
string="Venue Booking",
help='The relation added for the venue '
'Booking ')
state = fields.Selection([('done', 'Done'), ('pending', 'Pending')],
string="State", default="pending",
readonly=True,
help="The state of the venue Booking line")
currency_id = fields.Many2one('res.currency', readonly=True,
default=lambda self:
self.env.user.company_id.currency_id,
string="Currency",
help="The currency of the booking line")
is_invoiced = fields.Boolean(string="Invoiced", readonly=True,
help="The boolean value used for finding the "
"venue booking is invoiced or not")
venue_type_id = fields.Many2one('venue.type',
string="Related Venue Type",
related='venue_booking_id.venue_type_id',
help="The venue type of the booking line")
amenity_id = fields.Many2one('amenities', string='Amenities',
help='The relational field for the booking '
'line with the amenities model')
quantity = fields.Float(string="Quantity", default=1,
help="Quantity of the Amenities")
amount = fields.Float(string="Amount", help="Amount of the Amenities",
related='amenity_id.amount')
sub_total = fields.Float(string="Sub Total",
compute="_compute_extra_sub_total",
readonly=True, help="Sub Total of the Values")
@api.depends('quantity', 'amount')
def _compute_extra_sub_total(self):
"""Compute function for the Amenities"""
for booking in self:
booking.sub_total = booking.quantity * booking.amount

54
venue_booking_management/models/venue_lines.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import api, fields, models
class VenueLines(models.Model):
"""Model for managing the Venue lines"""
_name = 'venue.lines'
_description = 'Venue Lines'
venue_id = fields.Many2one('venue', string='Venue Lines',
help='The relational field for the venue model')
amenities_id = fields.Many2one('amenities', string='Amenities',
help='The field used to link the '
'amenities model')
quantity = fields.Float(string="Quantity", default=1,
help="Quantity of the Amenities")
amount = fields.Float(string="Amount", help="Amount of the Amenities",
related='amenities_id.amount')
sub_total = fields.Float(string="Subtotal", compute="_compute_sub_total",
readonly=True, help="Sub Total of the Values")
currency_id = fields.Many2one('res.currency', readonly=True,
string='Currency',
default=lambda self:
self.env.user.company_id.currency_id,
help="Currency value of the Venue")
status = fields.Selection([('open', 'Open'), ('done', 'Done')],
string="Status", default='open',
help="Status of the Venue")
@api.depends('quantity', 'amount')
def _compute_sub_total(self):
"""Compute the Sub Total of the Venue values"""
for item in self:
item.sub_total = item.quantity * item.amount

33
venue_booking_management/models/venue_type.py

@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import fields, models
class VenueType(models.Model):
"""Model for managing the Venue types"""
_name = 'venue.type'
_description = 'Venue Type'
name = fields.Char(string="Name", help="Name of the venue type")
image = fields.Binary(string="Image", attachment=True,
help="This field holds the image used as "
"image for the event, limited to 1080x720px.")

23
venue_booking_management/report/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import form_venue_booking_report
from . import venue_booking_report

80
venue_booking_management/report/form_venue_booking_report.py

@ -0,0 +1,80 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
import pytz
from odoo import api, fields, models
from odoo.exceptions import ValidationError
class VenueBookingReport(models.AbstractModel):
"""Class is used to print pdf report for the venue_booking module
form view"""
_name = 'report.venue_booking_management.report_venue_booking'
@api.model
def _get_report_values(self, docids, data=None):
"""Function to return values for the report,
docids: it will provide the current id the model"""
current = fields.datetime.now().astimezone(
pytz.timezone(self.env.user.tz))
current = current.strftime("%d-%m-%Y %H:%M:%S")
if docids:
doc_ids = self.env['venue.booking'].sudo().browse(docids)
return {
'doc_ids': doc_ids,
'today_date': current,
}
else:
form_data = data['form']
# Initialize the SQL WHERE clause
where = '1=1'
# Check if the start_date is greater than end_date
if form_data['start_date'] and form_data['end_date'] and form_data[
'start_date'] > form_data['end_date']:
raise ValidationError('Start Date must be less than End Date')
# Add conditions to the WHERE clause based on form data
if form_data["partner_id"]:
where += """ AND tb.partner_id = %s""" % \
form_data['partner_id'][0]
if form_data['start_date']:
where += """ AND tb.date >= '%s'""" % form_data['start_date']
if form_data['end_date']:
where += """ AND tb.date <= '%s'""" % form_data['end_date']
if form_data['venue_id']:
where += """ AND tb.venue_id = %s""" % form_data['venue_id'][0]
# Execute the SQL query with the WHERE clause
self.env.cr.execute("""
SELECT tb.ref, pr.name, fv.name as venue, tb.booking_type,
tb.date, tb.start_date, tb.end_date, tb.state
FROM venue_booking as tb
INNER JOIN res_partner as pr ON pr.id = tb.partner_id
INNER JOIN venue as fv ON fv.id = tb.venue_id
WHERE %s
""" % where)
# Fetch the query results
rec = self.env.cr.dictfetchall()
# Return the data for the report
return {
'docs': rec,
'docs2': form_data,
'today_date': current,
}

73
venue_booking_management/report/venue_booking_report.py

@ -0,0 +1,73 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import fields, models, tools
class VenueBookingReport(models.Model):
_name = "venue.booking.report"
_description = "Venue Booking Analysis Report"
_auto = False
_rec_name = 'date'
_order = 'date desc'
name = fields.Char(string='Booking Reference', readonly=True,
help="Booking Reference field for the Reporting")
date = fields.Datetime(string='Booking Date', readonly=True,
help="Booking Date field for the Reporting")
partner_id = fields.Many2one('res.partner',
string='Customer', readonly=True,
help="Partner ID field for the Reporting")
total = fields.Float(string='Total', readonly=True,
help="Total amount for the Booking Values")
state = fields.Selection([
('draft', 'Enquiry'),
('confirm', 'Confirmed'),
('invoice', 'Invoiced'),
('close', 'Closed'),
('cancel', 'Cancelled'),
], string='Status', readonly=True,
help="The selection field for the Booking")
def init(self):
"""Initialize the function to get the Booking Details"""
tools.drop_view_if_exists(self._cr, self._table)
self._cr.execute("""
CREATE OR REPLACE VIEW %s AS (
SELECT
vb.id as id,
vb.name as name,
vb.date as date,
vb.partner_id as partner_id,
vb.total as total,
vb.state as state
FROM venue_booking vb
WHERE vb.state IN ('confirm', 'invoice')
GROUP BY
vb.id,
vb.name,
vb.date,
vb.partner_id,
vb.total,
vb.state
ORDER BY vb.id
)
""" % (self._table,))

186
venue_booking_management/report/venue_booking_report_templates.xml

@ -0,0 +1,186 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Template used to create form for the booking report-->
<template id="report_venue_booking">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<div class="oe_structure"/>
<div class="row">
<div class="col-md-12" style="text-align: center;">
<h2>
<span>Venue/Event Booking Report</span>
</h2>
</div>
</div>
<br/>
<br/>
<div>
<span>Date:</span>
<span t-esc="today_date"/>
</div>
<br/>
<t t-if="doc_ids">
<div>
<span t-if="doc_ids['start_date']">
<b>From:</b>
<span style="margin-left:3px;margin-right:17px;margin-bottom:3px"
t-esc="doc_ids['start_date']"/>
</span>
<span t-if="doc_ids['end_date']">
<b>To:</b>
<span style="margin-left:3px;margin-right:17px;margin-bottom:3px"
t-esc="doc_ids['end_date']"/>
</span>
<br/>
<br/>
<span t-if="doc_ids['partner_id']">
<b>Customer:</b>
<span style="margin-left:3px;margin-bottom:3px"
t-esc="doc_ids['partner_id'].name"/>
</span>
<br/>
<br/>
<span t-if="doc_ids['venue_id']">
<b>Venue:</b>
<span style="margin-left:3px;margin-bottom:3px"
t-esc="doc_ids['venue_id'].name"/>
</span>
</div>
<div class="row">
<div class="col-md-12">
<table class="table table-sm">
<thead>
<tr>
<th>Sl.no</th>
<th>Ref.No</th>
<th>Venue</th>
<th>Booking Type</th>
<th>Customer</th>
<th>Start Date</th>
<th>End Date</th>
<th>State</th>
</tr>
</thead>
<tbody>
<t t-foreach="doc_ids" t-as="l">
<tr>
<td>
<t t-esc="l_index + 1"/>
</td>
<td>
<span t-esc="l['ref']"/>
</td>
<td>
<span t-esc="l['venue_id'].name"/>
</td>
<td>
<span t-esc="{'hour': 'Hour', 'day': 'Day'}
[l['booking_type']]"/>
</td>
<td>
<span t-esc="l['partner_id'].name"/>
</td>
<td>
<span t-esc="l['start_date']"/>
</td>
<td>
<span t-esc="l['end_date']"/>
</td>
<td>
<span t-esc="{'draft': 'Draft', 'confirm': 'Confirm', 'invoice': 'Invoiced', 'cancel': 'Cancelled', 'close': 'Closed'}
[l['state']]"/>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</div>
</t>
<t t-if="docs2">
<div>
<span t-if="docs2['start_date']">
<b>From:</b>
<span style="margin-left:3px;margin-right:17px;margin-bottom:3px"
t-esc="docs2['start_date']"/>
</span>
<span t-if="docs2['end_date']">
<b>To:</b>
<span style="margin-left:3px;margin-right:17px;margin-bottom:3px"
t-esc="docs2['end_date']"/>
</span>
<br/>
<br/>
<span t-if="docs2['partner_id']">
<b>Customer:</b>
<span style="margin-left:3px;margin-bottom:3px"
t-esc="docs2['partner_id'][1]"/>
</span>
<br/>
<br/>
<span t-if="docs2['venue_id']">
<b>Venue:</b>
<span style="margin-left:3px;margin-bottom:3px"
t-esc="docs2['venue_id'][1]"/>
</span>
</div>
<br/>
<br/>
<div class="row">
<div class="col-md-12">
<table class="table table-sm">
<thead>
<tr>
<th>Sl.no</th>
<th>Ref.No</th>
<th>Venue</th>
<th>Booking Type</th>
<th>Customer</th>
<th>Start Date</th>
<th>End Date</th>
<th>State</th>
</tr>
</thead>
<tbody>
<t t-foreach="docs" t-as="l">
<tr>
<td>
<t t-esc="l_index + 1"/>
</td>
<td>
<span t-esc="l['ref']"/>
</td>
<td>
<span t-esc="l['venue']"/>
</td>
<td>
<span t-esc="{'hour': 'Hour', 'day': 'Day'}
[l['booking_type']]"/>
</td>
<td>
<span t-esc="l['name']"/>
</td>
<td>
<span t-esc="l['start_date']"/>
</td>
<td>
<span t-esc="l['end_date']"/>
</td>
<td>
<span t-esc="{'draft': 'Draft', 'confirm': 'Confirm', 'invoice': 'Invoiced', 'cancel': 'Cancelled', 'close': 'Closed'}
[l['state']]"/>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</div>
</t>
<div class="oe_structure"/>
</div>
</t>
</t>
</template>
</odoo>

108
venue_booking_management/report/venue_booking_report_views.xml

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Pivot view for the Report-->
<record id="venue_booking_report_view_pivot" model="ir.ui.view">
<field name="name">venue.booking.report.view.pivot</field>
<field name="model">venue.booking.report</field>
<field name="arch" type="xml">
<pivot string="Venue Booking Analysis" sample="1">
<field name="partner_id" type="col"/>
<field name="date" interval="month" type="row"/>
<field name="total" type="measure"/>
<field name="partner_id" type="measure"/>
</pivot>
</field>
</record>
<!--Graph view for the report-->
<record id="venue_booking_report_view_graph" model="ir.ui.view">
<field name="name">venue.booking.report.view.graph</field>
<field name="model">venue.booking.report</field>
<field name="arch" type="xml">
<graph string="Venue Booking Analysis" type="line" sample="1">
<field name="date" interval="day"/>
<field name="total" type="measure"/>
<field name="partner_id" type="measure"/>
</graph>
</field>
</record>
<!--Tree view for the booking Report-->
<record id="venue_booking_report_view_tree" model="ir.ui.view">
<field name="name">venue.booking.report.view.tree</field>
<field name="model">venue.booking.report</field>
<field name="arch" type="xml">
<tree string="Venue Booking Analysis">
<field name="date" widget="date"/>
<field name="partner_id" optional="hide"/>
<field name="total" optional="hide" sum="Sum of Total"/>
<field name="state" optional="hide"/>
</tree>
</field>
</record>
<!--Search view for the Booking Report-->
<record id="venue_booking_report_view_search" model="ir.ui.view">
<field name="name">venue.booking.report.view.search</field>
<field name="model">venue.booking.report</field>
<field name="arch" type="xml">
<search string="Venue Booking Analysis">
<field name="date"/>
<filter string="Date" name="year" invisible="1" date="date"
default_period="this_year"/>
<filter string="Enquiry" name="Enquiry"
domain="[('state','in', ('draft'))]"/>
<filter string="Confirmed Booking" name="Confirmed Booking"
domain="[('state','not in',('draft', 'cancel', 'close'))]"/>
<separator/>
<filter name="filter_date" date="date"
default_period="this_month"/>
<filter name="filter_order_date" invisible="1"
string="Order Date: Last 365 Days"
domain="[('date', '&gt;=', (datetime.datetime.combine(context_today() + relativedelta(days=-365), datetime.time(0,0,0))).strftime('%Y-%m-%d %H:%M:%S'))]"/>
<separator/>
<field name="partner_id"/>
<group expand="1" string="Group By">
<filter string="Customer" name="Customer"
context="{'group_by':'partner_id'}"/>
<filter string="Status" name="status"
context="{'group_by':'state'}"/>
<separator/>
<filter string="Order Date" name="date"
context="{'group_by':'date'}"
invisible="context.get('sale_report_view_hide_date')"/>
<filter string="Order Date" name="group_by_date_day"
context="{'group_by':'date:day'}"
invisible="not context.get('sale_report_view_hide_date')"/>
</group>
</search>
</field>
</record>
<!-- Action record for the Report-->
<record id="venue_booking_report_action" model="ir.actions.act_window">
<field name="name">Venue Booking Analysis</field>
<field name="res_model">venue.booking.report</field>
<field name="view_mode">graph,pivot</field>
<field name="search_view_id" ref="venue_booking_report_view_search"/>
<field name="context">{'group_by_no_leaf':1,'group_by':[],
'search_default_filter_order_date': 1}
</field>
<field name="help">This report performs analysis on your Venue
Booking.
</field>
</record>
<record id="report_all_venue_booking_action" model="ir.actions.act_window">
<field name="name">Venue Booking Analysis</field>
<field name="res_model">venue.booking.report</field>
<field name="view_mode">pivot</field>
</record>
<!--MenuItems for the Reports-->
<menuitem id="venue_booking_menu_report"
name="Reporting" action="venue_booking_report_action"
parent="venue_booking_menu_root"
groups="venue_booking_management.venue_booking_management_group_venue_manager"
sequence="40"/>
<menuitem id="venue_booking_menu_report_sub_menu"
name="Venue Booking Analysis"
action="venue_booking_report_action"
parent="venue_booking_menu_report"
groups="venue_booking_management.venue_booking_management_group_venue_manager"
sequence="10"/>
</odoo>

18
venue_booking_management/report/venue_booking_rerports.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Generate the Booking report as pdf Format-->
<record id="action_venue_booking_management_report"
model="ir.actions.report">
<field name="name">Venue Booking</field>
<field name="model">venue.booking</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">
venue_booking_management.report_venue_booking
</field>
<field name="report_file">
venue_booking_management.report_venue_booking
</field>
<field name="binding_model_id" ref="model_venue_booking"/>
<field name="binding_type">report</field>
</record>
</odoo>

10
venue_booking_management/security/ir.model.access.csv

@ -0,0 +1,10 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_venue_type_manager,access.venue.type.manager,model_venue_type,base.group_user,1,1,1,1
access_venue_booking,access.venue.booking,model_venue_booking,base.group_user,1,1,1,1
access_amenities,access.amenities,model_amenities,base.group_user,1,1,1,1
access_venue,access.venue,model_venue,base.group_user,1,1,1,1
access_venue_lines,access.venue.lines,model_venue_lines,base.group_user,1,1,1,1
access_venue_booking_line,access.venue.booking.line,model_venue_booking_line,base.group_user,1,1,1,1
access_check_venue_availability,access.check.venue.availability,model_check_venue_availability,base.group_user,1,1,1,1
access_venue_booking_report,access.venue.booking.report,model_venue_booking_report,base.group_user,1,1,1,1
access_venue_booking_analysis,access.venue.booking.analysis,model_venue_booking_analysis,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_venue_type_manager access.venue.type.manager model_venue_type base.group_user 1 1 1 1
3 access_venue_booking access.venue.booking model_venue_booking base.group_user 1 1 1 1
4 access_amenities access.amenities model_amenities base.group_user 1 1 1 1
5 access_venue access.venue model_venue base.group_user 1 1 1 1
6 access_venue_lines access.venue.lines model_venue_lines base.group_user 1 1 1 1
7 access_venue_booking_line access.venue.booking.line model_venue_booking_line base.group_user 1 1 1 1
8 access_check_venue_availability access.check.venue.availability model_check_venue_availability base.group_user 1 1 1 1
9 access_venue_booking_report access.venue.booking.report model_venue_booking_report base.group_user 1 1 1 1
10 access_venue_booking_analysis access.venue.booking.analysis model_venue_booking_analysis base.group_user 1 1 1 1

22
venue_booking_management/security/venue_booking_management_groups.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.module.category" id="module_venue_booking_management">
<field name="name">Venue Booking Management</field>
<field name="description">Category for Venue Booking Management</field>
</record>
<!--Group For User-->
<record id="venue_booking_management_group_venue_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="module_venue_booking_management"/>
</record>
<!--Group For Manager-->
<record id="venue_booking_management_group_venue_manager"
model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="module_venue_booking_management"/>
<field name="implied_ids"
eval="[(4, ref('venue_booking_management_group_venue_user'))]"/>
<field name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
</odoo>

22
venue_booking_management/security/venue_booking_secruity.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--XML for viewing created records of logged user-->
<record id="venue_booking_rule_space_user" model="ir.rule">
<field name="name">View Own Docs</field>
<field ref="model_venue_booking" name="model_id"/>
<field name="domain_force">['|',('user_id', '=',
user.id),('create_uid',
'=', user.id)]
</field>
<field name="groups"
eval="[(4, ref('venue_booking_management.venue_booking_management_group_venue_user'))]"/>
</record>
<!--XML for viewing all the records of all the users-->
<record id="venue_booking_rule_space_manager" model="ir.rule">
<field name="name">View All Docs</field>
<field ref="model_venue_booking" name="model_id"/>
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups"
eval="[(4, ref('venue_booking_management.venue_booking_management_group_venue_manager'))]"/>
</record>
</odoo>

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

33
venue_booking_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
venue_booking_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
venue_booking_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
venue_booking_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
venue_booking_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
venue_booking_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
venue_booking_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
venue_booking_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
venue_booking_management/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
venue_booking_management/static/description/assets/modules/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
venue_booking_management/static/description/assets/modules/3.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 KiB

BIN
venue_booking_management/static/description/assets/modules/4.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

BIN
venue_booking_management/static/description/assets/modules/5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
venue_booking_management/static/description/assets/modules/6.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
venue_booking_management/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
venue_booking_management/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
venue_booking_management/static/description/assets/screenshots/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
venue_booking_management/static/description/assets/screenshots/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
venue_booking_management/static/description/assets/screenshots/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
venue_booking_management/static/description/assets/screenshots/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
venue_booking_management/static/description/assets/screenshots/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
venue_booking_management/static/description/assets/screenshots/16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
venue_booking_management/static/description/assets/screenshots/17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
venue_booking_management/static/description/assets/screenshots/18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
venue_booking_management/static/description/assets/screenshots/19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
venue_booking_management/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 KiB

BIN
venue_booking_management/static/description/assets/screenshots/20.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
venue_booking_management/static/description/assets/screenshots/21.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
venue_booking_management/static/description/assets/screenshots/22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
venue_booking_management/static/description/assets/screenshots/23.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
venue_booking_management/static/description/assets/screenshots/24.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
venue_booking_management/static/description/assets/screenshots/25.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
venue_booking_management/static/description/assets/screenshots/26.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
venue_booking_management/static/description/assets/screenshots/27.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
venue_booking_management/static/description/assets/screenshots/28.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
venue_booking_management/static/description/assets/screenshots/29.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
venue_booking_management/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

BIN
venue_booking_management/static/description/assets/screenshots/30.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
venue_booking_management/static/description/assets/screenshots/31.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
venue_booking_management/static/description/assets/screenshots/32.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
venue_booking_management/static/description/assets/screenshots/33.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
venue_booking_management/static/description/assets/screenshots/34.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
venue_booking_management/static/description/assets/screenshots/35.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
venue_booking_management/static/description/assets/screenshots/36.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
venue_booking_management/static/description/assets/screenshots/37.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
venue_booking_management/static/description/assets/screenshots/38.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
venue_booking_management/static/description/assets/screenshots/39.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
venue_booking_management/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
venue_booking_management/static/description/assets/screenshots/40.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
venue_booking_management/static/description/assets/screenshots/41.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
venue_booking_management/static/description/assets/screenshots/42.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save