Browse Source

Nov 24 : [ADD] Initial Commit 'web_portal_attendance'

pull/295/head
RisvanaCybro 2 years ago
parent
commit
a2ba0d19fa
  1. 42
      web_portal_attendance/README.rst
  2. 23
      web_portal_attendance/__init__.py
  3. 48
      web_portal_attendance/__manifest__.py
  4. 24
      web_portal_attendance/controllers/__init__.py
  5. 233
      web_portal_attendance/controllers/portal.py
  6. 7
      web_portal_attendance/doc/RELEASE_NOTES.md
  7. 24
      web_portal_attendance/models/__init__.py
  8. 31
      web_portal_attendance/models/hr_attendance.py
  9. BIN
      web_portal_attendance/static/description/assets/icons/check.png
  10. BIN
      web_portal_attendance/static/description/assets/icons/chevron.png
  11. BIN
      web_portal_attendance/static/description/assets/icons/cogs.png
  12. BIN
      web_portal_attendance/static/description/assets/icons/consultation.png
  13. BIN
      web_portal_attendance/static/description/assets/icons/ecom-black.png
  14. BIN
      web_portal_attendance/static/description/assets/icons/education-black.png
  15. BIN
      web_portal_attendance/static/description/assets/icons/hotel-black.png
  16. BIN
      web_portal_attendance/static/description/assets/icons/license.png
  17. BIN
      web_portal_attendance/static/description/assets/icons/lifebuoy.png
  18. BIN
      web_portal_attendance/static/description/assets/icons/manufacturing-black.png
  19. BIN
      web_portal_attendance/static/description/assets/icons/pos-black.png
  20. BIN
      web_portal_attendance/static/description/assets/icons/puzzle.png
  21. BIN
      web_portal_attendance/static/description/assets/icons/restaurant-black.png
  22. BIN
      web_portal_attendance/static/description/assets/icons/service-black.png
  23. BIN
      web_portal_attendance/static/description/assets/icons/trading-black.png
  24. BIN
      web_portal_attendance/static/description/assets/icons/training.png
  25. BIN
      web_portal_attendance/static/description/assets/icons/update.png
  26. BIN
      web_portal_attendance/static/description/assets/icons/user.png
  27. BIN
      web_portal_attendance/static/description/assets/icons/wrench.png
  28. BIN
      web_portal_attendance/static/description/assets/misc/categories.png
  29. BIN
      web_portal_attendance/static/description/assets/misc/check-box.png
  30. BIN
      web_portal_attendance/static/description/assets/misc/compass.png
  31. BIN
      web_portal_attendance/static/description/assets/misc/corporate.png
  32. BIN
      web_portal_attendance/static/description/assets/misc/customer-support.png
  33. BIN
      web_portal_attendance/static/description/assets/misc/cybrosys-logo.png
  34. BIN
      web_portal_attendance/static/description/assets/misc/features.png
  35. BIN
      web_portal_attendance/static/description/assets/misc/logo.png
  36. BIN
      web_portal_attendance/static/description/assets/misc/pictures.png
  37. BIN
      web_portal_attendance/static/description/assets/misc/pie-chart.png
  38. BIN
      web_portal_attendance/static/description/assets/misc/right-arrow.png
  39. BIN
      web_portal_attendance/static/description/assets/misc/star.png
  40. BIN
      web_portal_attendance/static/description/assets/misc/support.png
  41. BIN
      web_portal_attendance/static/description/assets/misc/whatsapp.png
  42. BIN
      web_portal_attendance/static/description/assets/modules/11.png
  43. BIN
      web_portal_attendance/static/description/assets/modules/22.png
  44. BIN
      web_portal_attendance/static/description/assets/modules/33.png
  45. BIN
      web_portal_attendance/static/description/assets/modules/44.png
  46. BIN
      web_portal_attendance/static/description/assets/modules/55.png
  47. BIN
      web_portal_attendance/static/description/assets/modules/66.png
  48. BIN
      web_portal_attendance/static/description/assets/screenshots/hero.gif
  49. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_01.png
  50. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_02.png
  51. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_03.png
  52. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_04.png
  53. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_05.png
  54. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_06.png
  55. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_07.png
  56. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_08.png
  57. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_09.png
  58. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_10.png
  59. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_11.png
  60. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_12.png
  61. BIN
      web_portal_attendance/static/description/assets/screenshots/portal_13.png
  62. BIN
      web_portal_attendance/static/description/banner.png
  63. BIN
      web_portal_attendance/static/description/icon.png
  64. 703
      web_portal_attendance/static/description/index.html
  65. 46
      web_portal_attendance/static/src/js/portal_message.js
  66. 102
      web_portal_attendance/views/hr_attendance_templates.xml
  67. 14
      web_portal_attendance/views/hr_attendance_views.xml
  68. 174
      web_portal_attendance/views/portal.xml

42
web_portal_attendance/README.rst

@ -0,0 +1,42 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Portal Attendance
==================
This module allow to create attendance from portal without any user access
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html)
Credits
-------
Developer: (V16) THASNI CP , Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
web_portal_attendance/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: THASNI CP (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

48
web_portal_attendance/__manifest__.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: THASNI CP (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': 'Portal Attendance',
'version': '16.0.1.0.0',
'category': 'Website,Human Resources',
'summary': """For creating attendance from portal.""",
'description': 'Using Portal Attendance module user can see their '
'attendance and also mark their '
'attendance from portal as well',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['website', 'hr_attendance', 'contacts'],
'data': [
'views/hr_attendance_templates.xml',
'views/hr_attendance_views.xml',
'views/portal.xml',
],
'assets': {'web.assets_frontend': [
'web_portal_attendance/static/src/js/portal_message.js',
], },
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

24
web_portal_attendance/controllers/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: THASNI CP (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

233
web_portal_attendance/controllers/portal.py

@ -0,0 +1,233 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: THASNI CP (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 collections import OrderedDict
from datetime import datetime
from dateutil.relativedelta import relativedelta
from odoo import fields
from odoo import http
from odoo.http import request
from odoo.tools import date_utils
from odoo.addons.portal.controllers import portal
from odoo.addons.portal.controllers.portal import pager
class PortalAttendance(portal.CustomerPortal):
"""To get the values of portal attendance"""
def _prepare_home_portal_values(self, counters):
"""To get the count of the attendance in portal"""
values = super(PortalAttendance, self)._prepare_home_portal_values(
counters)
uid = request.session.uid
user_id = request.env['res.users'].browse(uid)
employee_id = request.env['hr.employee'].search(
[('user_id', '=', user_id.id)])
attendance_count = request.env['hr.attendance'].search_count(
[('is_portal', '=', True), ('employee_id', '=', employee_id.id)])
values.update({
'attendance_count': attendance_count
})
return values
@http.route('/attendance/checkin', type='http', auth='user', website=True)
def attendance_checkin(self):
"""When clicking the checkin button it will redirect to the check in
template"""
uid = request.session.uid
user_id = request.env['res.users'].browse(uid)
employee_id = request.env['hr.employee'].search(
[('user_id', '=', user_id.id)])
values = {
'name': employee_id.name,
'image': employee_id.image_1920,
'check_in': datetime.now()
}
return request.render("web_portal_attendance.check_in_template", values)
@http.route('/check/in', type='http', auth='user', website=True)
def attendance_creation(self):
"""When clicking the checkin button it will create attendance to the
backend"""
uid = request.session.uid
user_id = request.env['res.users'].browse(uid)
employee_id = request.env['hr.employee'].search(
[('user_id', '=', user_id.id)])
attendance = request.env['hr.attendance'].sudo().create({
'employee_id': employee_id.id,
'check_in': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'is_portal': True
})
check_in = datetime.now()
user_tz = pytz.timezone(
request.env.context.get('tz') or request.env.user.tz)
date_today = pytz.utc.localize(check_in).astimezone(user_tz)
formatted_time = datetime.strftime(date_today, '%H:%M:%S')
values = {
'attendance': attendance,
'name': employee_id.name,
'image': employee_id.image_1920,
'check_out': False,
'formatted_time': formatted_time,
}
return request.render(
"web_portal_attendance.check_in_welcome_note_template", values)
@http.route('/check/out', type='http', auth='user', website=True)
def attendance_checkout(self):
"""When clicking the checkout button it will store the checkout time
and worked hours in the check in log """
uid = request.session.uid
user_id = request.env['res.users'].browse(uid)
employee_id = request.env['hr.employee'].search(
[('user_id', '=', user_id.id)])
values = {
'name': employee_id.name,
'image': employee_id.image_1920
}
return request.render("web_portal_attendance.check_out_template",
values)
@http.route('/check/out/last', type='http', auth='user', website=True)
def attendance_final_checkout(self):
"""To display the final checkout template """
uid = request.session.uid
user_id = request.env['res.users'].browse(uid)
employee_id = request.env['hr.employee'].search(
[('user_id', '=', user_id.id)])
check_out = datetime.now()
user_tz = pytz.timezone(
request.env.context.get('tz') or request.env.user.tz)
date_today = pytz.utc.localize(check_out).astimezone(user_tz)
formatted_time = datetime.strftime(date_today, '%H:%M:%S')
attendance = request.env['hr.attendance'].search(
[('employee_id', '=', employee_id.id), ('check_out', '=', False),
('is_portal', '=', True)],
order="check_in desc", limit=1)
# If there is an attendance record with no check-out time,
# update it with the current time
if attendance:
check_out = datetime.now()
check_in = attendance.check_in
worked_hours = check_out - check_in
total_seconds = worked_hours.total_seconds()
hours = int(total_seconds / 3600)
minutes = int((total_seconds % 3600) / 60)
worked_hours_str = "{:02d}:{:02d}".format(hours, minutes)
hours, minutes = map(int, worked_hours_str.split(':'))
worked_hours_float = hours + minutes / 60.0
attendance.write({
'check_out': check_out.strftime('%Y-%m-%d %H:%M:%S'),
'worked_hours': worked_hours_float
})
values = {
'name': employee_id.name,
'image': employee_id.image_1920,
'formatted_time': formatted_time
}
return request.render("web_portal_attendance.portal_last_checkout",
values)
@http.route(['/attendance/list', '/attendance/list/page/<int:page>'],
type='http', website=True)
def attendance_search_sort_view(self, page=1, search=None,
search_in="Check In",
filterby="all", **kwargs):
"""To search and filter in the list view of attendance"""
uid = request.session.uid
user_id = request.env['res.users'].browse(uid)
employee_id = request.env['hr.employee'].search(
[('user_id', '=', user_id.id)])
search_list = {
'Work Hour': {'label': 'Work Hour', 'input': 'Work Hour',
'domain': [('worked_hours', 'ilike', search)]},
'Check In': {'label': 'Check In', 'input': 'Check In',
'domain': [('check_in', 'ilike', search)]},
'Check Out': {'label': 'Check Out', 'input': 'Check Out',
'domain': [('check_out', 'ilike', search)]}, }
today = fields.Date.today()
last_week = today + relativedelta(weeks=-1)
last_month = today + relativedelta(months=-1)
last_year = today + relativedelta(years=-1)
searchbar_filters = {
'all': {'label': 'All', 'domain': []},
'today': {
'label': 'Today',
'domain': [("check_in", ">=",
fields.Datetime.to_string(fields.Datetime.today())),
("check_in", "<=", fields.Datetime.to_string(
fields.Datetime.today().replace(hour=23,
minute=59,
second=59)))]},
'week': {
'label': 'Last Week',
'domain': [
('check_in', '>=', date_utils.start_of(last_week, "week")),
('check_in', '<=', date_utils.end_of(last_week, 'week'))]},
'month': {
'label': 'Last Month',
'domain': [('check_in', '>=',
date_utils.start_of(last_month, 'month')),
('check_in', '<=',
date_utils.end_of(last_month, 'month'))]},
'year': {
'label': 'Last Year',
'domain': [
('check_in', '>=', date_utils.start_of(last_year, 'year')),
('check_in', '<=', date_utils.end_of(last_year, 'year'))]}}
search_domain = search_list[search_in]['domain']
filter_domain = searchbar_filters[filterby]['domain']
attendance_obj = request.env['hr.attendance'].search(
[('is_portal', '=', True), ('employee_id', '=', employee_id.id)])
total_attendance = attendance_obj.search_count(
[('is_portal', '=', True),
('employee_id', '=',
employee_id.id)] + search_domain + filter_domain)
page_detail = pager(url='/attendance/list',
total=total_attendance,
page=page,
step=10,
url_args={'search': search,
'search_in': search_in,
'filterby': filterby})
attendance_domain = [('is_portal', '=', True),
('employee_id', '=', employee_id.id)]
if search_domain:
attendance_domain += search_domain
if filter_domain:
attendance_domain += filter_domain
attendance = attendance_obj.search(
attendance_domain,
limit=10,
offset=page_detail['offset'])
vals = {
'attendance': attendance,
'page_name': 'attendance',
'pager': page_detail,
'search': search,
'search_in': search_in,
'searchbar_inputs': search_list,
'default_url': '/attendance/list',
'searchbar_filters': OrderedDict(sorted(searchbar_filters.items())),
'filterby': filterby,
}
return request.render(
"web_portal_attendance.portal_list_attendance_order", vals)

7
web_portal_attendance/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <web_portal_attendance>
#### 19.10.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Portal Attendance

24
web_portal_attendance/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: THASNI CP (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 hr_attendance

31
web_portal_attendance/models/hr_attendance.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: THASNI CP (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 HrAttendance(models.Model):
"""To add a boolean field to check the attendance from website"""
_inherit = 'hr.attendance'
is_portal = fields.Boolean(string="From Portal",
help="To check if the attendance from portal "
"or not", default=False)

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
web_portal_attendance/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
web_portal_attendance/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
web_portal_attendance/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
web_portal_attendance/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
web_portal_attendance/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
web_portal_attendance/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
web_portal_attendance/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
web_portal_attendance/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
web_portal_attendance/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
web_portal_attendance/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
web_portal_attendance/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
web_portal_attendance/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
web_portal_attendance/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
web_portal_attendance/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
web_portal_attendance/static/description/assets/modules/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
web_portal_attendance/static/description/assets/modules/22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
web_portal_attendance/static/description/assets/modules/33.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
web_portal_attendance/static/description/assets/modules/44.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
web_portal_attendance/static/description/assets/modules/55.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
web_portal_attendance/static/description/assets/modules/66.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_04.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_05.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_06.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_07.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_08.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_09.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

BIN
web_portal_attendance/static/description/assets/screenshots/portal_13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
web_portal_attendance/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
web_portal_attendance/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

703
web_portal_attendance/static/description/index.html

@ -0,0 +1,703 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Portal Attendance </h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This Module Allows Users To View Their Attendance As
Well As Mark It From The Portal.</p>
<!-- END OF APP HERO -->
<img src="./assets/screenshots/hero.gif" class="img-responsive"
width="100%" height="auto"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This allows to create attendance to the backend from the portal view, so the user
that don't have the access to the backend they can easily create attendance from
portal.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Easy to see the attendance from portal.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Easy to filter the attendance from portal.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Apply filters on record to see the records according to filters all and day wise of attendance.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
You can easily search the record from the list of records using searchbar.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
You can easily search the record from the list of records using searchbar.</span>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
As seen in the image below,when the user enter to the portal the user
can see the check in button.
</h3>
<img src="assets/screenshots/portal_01.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
When we clicked the check in button it will redirect to the another
page to create the attendance.
</h3>
<img src="assets/screenshots/portal_02.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
When we click the check in button inside the template it will create
attendance to the backend , and we can see a welcome message and check
in time also the check in button turns to check out button.</h3>
<img src="assets/screenshots/portal_03.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Then the user can check the created attendance, from My Account ->
Attendance . Here we can see the created attendance and count of the
attendance.
</h3>
<img src="assets/screenshots/portal_04.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
When open the created attendance here we can see the employee name
,check in time, check out time and worked hours. </h3>
<img src="assets/screenshots/portal_05.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Click the check out button to check out the attendance.
</h3>
<img src="assets/screenshots/portal_06.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
When clicking the check out button it will redirect to the check out
template, and they will ask to want to check out.
</h3>
<img src="assets/screenshots/portal_07.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
After checked out the user can see the leaving note and checked out
time,also the check out button changed in to check in button.
</h3>
<img src="assets/screenshots/portal_08.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
The check out time and the work hour updated to the created attendance.
</h3>
<img src="assets/screenshots/portal_09.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
In portal attendance we can filter out, and we can search for the
attendance. </h3>
<img src="assets/screenshots/portal_10.png"
class="img-thumbnail">
</div>
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
We can filter by All,Today,Last Week,Last Month,Last Year.
</h3>
<img src="assets/screenshots/portal_11.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
We can search by Work Hour, Check In and Check Out by the day or the time.
</h3>
<img src="assets/screenshots/portal_12.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
The admin can view the created attendance in the backend in Attendance
module. </h3>
<img src="assets/screenshots/portal_13.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_product_attachments/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/11.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/customer_geolocation/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/22.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_cart_clear/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/33.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/ecommerce_barcode_search/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/44.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_return_management/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/55.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/product_visibility_website/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/66.png">
</div>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px"
width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png" class="img-responsive mb-3"
height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help? Get in
touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

46
web_portal_attendance/static/src/js/portal_message.js

@ -0,0 +1,46 @@
odoo.define('web_portal_attendance.leaving_message', function (require) {
"use strict";
var PublicWidget = require('web.public.widget');
var currentTime = new Date().getHours();
var Slider = PublicWidget.Widget.extend({
selector: '.flex-grow-1',
start: function () {
var self = this;
self.leaving_message();
self.welcome_message();
},
//Function for adding leaving message in the tag
leaving_message: function () {
var leavingNoteElement = this.$el.find("#leaving_message");
if (leavingNoteElement.length) { // Check if the element exists
if (currentTime < 12) {
leavingNoteElement.text("Have a good day!"); // Set the text
} else if (currentTime < 18) {
leavingNoteElement.text("Have a great lunch!"); // Set the text
} else if (currentTime < 24) {
leavingNoteElement.text("Have a good tea time!"); // Set the text
} else {
leavingNoteElement.text("Have a great sleep!"); // Set the text
}
}
},
//Function for adding welcome message in the tag
welcome_message: function () {
var welcomeNoteElement = this.$el.find(".welcome_note");
if (welcomeNoteElement.length) { // Check if the element exists
if (currentTime < 12) {
welcomeNoteElement.text("Good Morning!"); // Set the text
} else if (currentTime < 18) {
welcomeNoteElement.text("Good Afternoon!"); // Set the text
} else if (currentTime < 24) {
welcomeNoteElement.text("Good Evening!"); // Set the text
} else {
welcomeNoteElement.text("Good Night!"); // Set the text
}
}
},
});
PublicWidget.registry.banner = Slider;
return Slider;
});

102
web_portal_attendance/views/hr_attendance_templates.xml

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- TO ADD TITLE IN BREAD CRUMBS-->
<template id="portal_my_home_menu_attendance"
name="Portal layout : Attendance menu entries"
inherit_id="portal.portal_breadcrumbs" priority="30">
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
<li t-if="page_name == 'attendance'"
t-attf-class="breadcrumb-item #{'active ' if not attendance else ''}">
<a t-if="attendance"
t-attf-href="/attendance/list?{{ keep_query() }}">
Attendance
</a>
<t t-else="">Attendance</t>
</li>
</xpath>
</template>
<!-- TO GET THE ATTENDANCE TEMPLATE AND THE COUNT IN PORTAL VIEW-->
<template id="portal_view" name="Attendance" customize_show="True"
inherit_id="portal.portal_my_home" priority="90">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<a href="/attendance/list"
class="list-group-item list-group-item-action d-flex align-items-center justify-content-between"
title="Attendance">
Attendance
<span class="badge text-bg-secondary rounded-pill"
data-oe-model="ir.ui.view" data-oe-id="405"
data-oe-field="arch"
data-oe-xpath="/t[1]/a[1]/t[3]/span[1]"
data-placeholder_count="attendance_count">
</span>
</a>
</xpath>
</template>
<!-- TO VIEW THE ATTENDANCE -->
<template id="portal_list_attendance_order" name="Attendance View">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Attendance
</t>
</t>
<t t-if="not attendance">
<p>There are currently no Attendance information for your
account.
</p>
</t>
<t t-if="attendance" t-call="portal.portal_table">
<thead>
<tr class="active">
<th>
<span class='d-none d-md-inline'>Employee
</span>
</th>
<th>
<span class='d-none d-md-inline'>Check In</span>
</th>
<th>
<span class='d-none d-md-inline'>Check Out</span>
</th>
<th>
<span class='d-none d-md-inline'>Work Hours</span>
</th>
</tr>
</thead>
<t t-foreach="attendance" t-as="pa">
<tr>
<td>
<t t-esc="pa.employee_id.name"/>
</td>
<td>
<span t-field="pa.check_in"
t-options="{'widget': 'date'}"/>&amp;nbsp;
<span class='d-none d-md-inline'
t-field="pa.check_in"
t-options="{'time_only': True}"/>
</td>
<td>
<span t-field="pa.check_out"
t-options="{'widget': 'date'}"/>&amp;nbsp;
<span class='d-none d-md-inline'
t-field="pa.check_out"
t-options="{'time_only': True}"/>
</td>
<td>
<t t-set="worked_hours" t-value="pa.worked_hours"/>
<t t-set="hours" t-value="int(worked_hours)"/>
<t t-set="minutes"
t-value="int(divmod(worked_hours, 1)[1] * 60)"/>
<span t-esc="'{:02d}:{:02d}'.format(hours, minutes)"/>
</td>
</tr>
</t>
</t>
</t>
</template>
</odoo>

14
web_portal_attendance/views/hr_attendance_views.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- To add a filed in attendance-->
<record id="hr_attendance_view_form" model="ir.ui.view">
<field name="name">hr.attendance.view.form.inherit.web.portal.attendance</field>
<field name="model">hr.attendance</field>
<field name="inherit_id" ref="hr_attendance.hr_attendance_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='check_out']" position="after">
<field name="is_portal" invisible="1"/>
</xpath>
</field>
</record>
</odoo>

174
web_portal_attendance/views/portal.xml

@ -0,0 +1,174 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- TO INHERIT THE CHECK IN AND CHECK OUT BUTTON-->
<template id="portal_layout" inherit_id="website.template_header_default"
name="Attendance Button">
<xpath expr="//t[@t-call='portal.user_dropdown']" position="after">
<a class="btn btn-primary check-in-btn" href="/attendance/checkin"
id="check_in"
t-if="request.env['hr.employee'].search([('user_id', '=', request.env.user.id)]).attendance_state == 'checked_out'">
Check In
</a>
<a class="btn btn-primary check-out-btn" href="/check/out"
id="check_out"
t-if="request.env['hr.employee'].search([('user_id', '=', request.env.user.id)]).attendance_state == 'checked_in'">
Check Out
</a>
</xpath>
</template>
<!-- CHECK IN TEMPLATE-->
<template id="check_in_template">
<t t-call="website.layout">
<span class="o_hr_attendance_kiosk_backdrop position-absolute top-0 start-0 end-0 bottom-0 bg-black-75"
style="z-index:-1;"/>
<div class="card-body" align="center"
style="background:mediumblue;">
<div style="width: 500px;height: 71px;border: 1px solid;color:cadetblue;background-color:#6A6C97;margin-top: 62px;">
<div class="o_hr_attendance_user_badge o_home_menu_background d-flex align-items-end justify-content-center flex-grow-1 pt-5 pt-md-4 bg-odoo">
<img class="img rounded-circle mb-n5"
t-attf-src="data:image/png;base64,{{image}}"
height="80">
</img>
</div>
</div>
<div class="card-body d-flex flex-column p-0 p-md-4"
style="background:white;width: 500px;">
<div class="flex-grow-1">
<h1 class="mt-5" style="font-family: g;font-size:25px">
Hello
<t t-esc="name"/>
</h1>
<h3 style="font-family: g;font-size:22px">Welcome!</h3>
</div>
<div class="flex-grow-1">
<a href="/check/in"
class="o_hr_attendance_sign_in_out_icon btn btn-success align-self-center px-5 py-3 mt-4 mb-2">
<span
style="font-family: g;font-size:18px">Check
In
</span>
<i class="fa fa-sign-in"
style="font-size:20px;"/>
</a>
</div>
</div>
</div>
</t>
</template>
<!-- AFTER CHECKIN WELCOME NOTE-->
<template id="check_in_welcome_note_template">
<t t-call="website.layout">
<span class="o_hr_attendance_kiosk_backdrop position-absolute top-0 start-0 end-0 bottom-0 bg-black-75"
style="z-index:-1;"/>
<div class="card-body" align="center"
style="background:mediumblue;">
<div style="width: 500px;height: 71px;border: 1px solid;color:cadetblue;background-color:#6A6C97;margin-top: 62px;">
<div class="o_hr_attendance_user_badge o_home_menu_background d-flex align-items-end justify-content-center flex-grow-1 pt-5 pt-md-4 bg-odoo">
<img class="img rounded-circle mb-n5"
t-attf-src="data:image/png;base64,{{image}}"
height="80">
</img>
</div>
</div>
<div class="card-body d-flex flex-column p-0 p-md-4"
style="background:white;width: 500px;">
<div class="flex-grow-1">
<h1 class="mt-5" style="font-family: g;font-size:25px">
Welcome
<t t-esc="name"/>
</h1>
<h3 style="font-family: g;font-size:18px"
class="welcome_note"/>
<div class="alert alert-info" role="status">
Checked in at
<b>
<t t-esc="formatted_time"/>
</b>
</div>
</div>
<a href="/check/out" class="btn btn-primary">
<span>OK</span>
</a>
</div>
</div>
</t>
</template>
<!-- CHECK OUT TEMPLATE -->
<template id="check_out_template">
<t t-call="website.layout">
<span class="o_hr_attendance_kiosk_backdrop position-absolute top-0 start-0 end-0 bottom-0 bg-black-75"
style="z-index:-1;"/>
<div class="card-body" align="center"
style="background:mediumblue;">
<div style="width: 500px;height: 71px;border: 1px solid;color:cadetblue;background-color:#6A6C97;margin-top: 62px;">
<div class="o_hr_attendance_user_badge o_home_menu_background d-flex align-items-end justify-content-center flex-grow-1 pt-5 pt-md-4 bg-odoo">
<img class="img rounded-circle mb-n5"
t-attf-src="data:image/png;base64,{{image}}"
height="80">
</img>
</div>
</div>
<div class="card-body d-flex flex-column p-0 p-md-4"
style="background:white;width: 500px;">
<div class="flex-grow-1">
<h1 class="mt-5" style="font-family: g;font-size:25px">
<t t-esc="name"/>
</h1>
<h3 style="font-family: g;font-size:20px">Want to check
out?
</h3>
</div>
<div class="flex-grow-1">
<a href="/check/out/last"
class="o_hr_attendance_sign_in_out_icon btn btn-warning align-self-center px-5 py-3 mt-4 mb-2">
<i class="fa fa-sign-out"
style="font-size:20px;"/>
<span
style="font-family: g;font-size:18px">Check
OUT
</span>
</a>
</div>
</div>
</div>
</t>
</template>
<!-- LAST CHECK OUT TEMPLATE-->
<template id="portal_last_checkout">
<t t-call="website.layout">
<span class="o_hr_attendance_kiosk_backdrop position-absolute top-0 start-0 end-0 bottom-0 bg-black-75"
style="z-index:-1;"/>
<div class="card-body" align="center"
style="background:mediumblue;">
<div style="width: 500px;height: 71px;border: 1px solid;color:cadetblue;background-color:#6A6C97;margin-top: 62px;">
<div class="o_hr_attendance_user_badge o_home_menu_background d-flex align-items-end justify-content-center flex-grow-1 pt-5 pt-md-4 bg-odoo">
<img class="img rounded-circle mb-n5"
t-attf-src="data:image/png;base64,{{image}}"
height="80">
</img>
</div>
</div>
<div class="card-body d-flex flex-column p-0 p-md-4"
style="background:white;width: 500px;">
<div class="flex-grow-1">
<h1 class="mt-5" style="font-family: g;font-size:25px;">
Goodbye &amp;nbsp;<t t-esc="name"/>!
</h1>
<h3 style="font-family: g;font-size:18px"
id="leaving_message"/>
</div>
<div class="alert alert-info" role="status">
Checked out at
<b>
<t t-esc="formatted_time"/>
</b>
</div>
<a href="/attendance/checkin"
class="btn btn-primary">
<span>GOOD BYE</span>
</a>
</div>
</div>
</t>
</template>
</odoo>
Loading…
Cancel
Save