Browse Source

Dec 02 : [ADD] Initial Commit 'employee_visa_management'

pull/254/merge
Sayooj 1 year ago
parent
commit
0e68b2583c
  1. 47
      employee_visa_management/README.rst
  2. 22
      employee_visa_management/__init__.py
  3. 52
      employee_visa_management/__manifest__.py
  4. 13
      employee_visa_management/data/ir_cron_data.xml
  5. 14
      employee_visa_management/data/ir_sequence_data.xml
  6. 6
      employee_visa_management/doc/RELEASE_NOTES.md
  7. 24
      employee_visa_management/models/__init__.py
  8. 32
      employee_visa_management/models/hr_employee.py
  9. 37
      employee_visa_management/models/visa_application.py
  10. 225
      employee_visa_management/models/visa_approval.py
  11. 13
      employee_visa_management/report/visa_approval_reports.xml
  12. 61
      employee_visa_management/report/visa_approval_templates.xml
  13. 13
      employee_visa_management/security/employee_visa_management_groups.xml
  14. 14
      employee_visa_management/security/employee_visa_security.xml
  15. 3
      employee_visa_management/security/ir.model.access.csv
  16. BIN
      employee_visa_management/static/description/assets/icons/check.png
  17. BIN
      employee_visa_management/static/description/assets/icons/chevron.png
  18. BIN
      employee_visa_management/static/description/assets/icons/cogs.png
  19. BIN
      employee_visa_management/static/description/assets/icons/consultation.png
  20. BIN
      employee_visa_management/static/description/assets/icons/ecom-black.png
  21. BIN
      employee_visa_management/static/description/assets/icons/education-black.png
  22. BIN
      employee_visa_management/static/description/assets/icons/hotel-black.png
  23. BIN
      employee_visa_management/static/description/assets/icons/license.png
  24. BIN
      employee_visa_management/static/description/assets/icons/lifebuoy.png
  25. BIN
      employee_visa_management/static/description/assets/icons/logo.png
  26. BIN
      employee_visa_management/static/description/assets/icons/manufacturing-black.png
  27. BIN
      employee_visa_management/static/description/assets/icons/pos-black.png
  28. BIN
      employee_visa_management/static/description/assets/icons/puzzle.png
  29. BIN
      employee_visa_management/static/description/assets/icons/restaurant-black.png
  30. BIN
      employee_visa_management/static/description/assets/icons/service-black.png
  31. BIN
      employee_visa_management/static/description/assets/icons/trading-black.png
  32. BIN
      employee_visa_management/static/description/assets/icons/training.png
  33. BIN
      employee_visa_management/static/description/assets/icons/update.png
  34. BIN
      employee_visa_management/static/description/assets/icons/user.png
  35. BIN
      employee_visa_management/static/description/assets/icons/wrench.png
  36. BIN
      employee_visa_management/static/description/assets/modules/employee_checklist.png
  37. BIN
      employee_visa_management/static/description/assets/modules/employee_checklist_image.png
  38. BIN
      employee_visa_management/static/description/assets/modules/employee_image.png
  39. BIN
      employee_visa_management/static/description/assets/modules/employee_insurance.png
  40. BIN
      employee_visa_management/static/description/assets/modules/employee_stages.png
  41. BIN
      employee_visa_management/static/description/assets/modules/employee_vehicle_request.png
  42. BIN
      employee_visa_management/static/description/assets/screenshots/hero.gif
  43. BIN
      employee_visa_management/static/description/assets/screenshots/visa0.png
  44. BIN
      employee_visa_management/static/description/assets/screenshots/visa1.png
  45. BIN
      employee_visa_management/static/description/assets/screenshots/visa2.png
  46. BIN
      employee_visa_management/static/description/assets/screenshots/visag0.png
  47. BIN
      employee_visa_management/static/description/assets/screenshots/visag1.png
  48. BIN
      employee_visa_management/static/description/assets/screenshots/visag2.png
  49. BIN
      employee_visa_management/static/description/assets/screenshots/visag3.png
  50. BIN
      employee_visa_management/static/description/assets/screenshots/visam0.png
  51. BIN
      employee_visa_management/static/description/assets/screenshots/visam1.png
  52. BIN
      employee_visa_management/static/description/assets/screenshots/visam2.png
  53. BIN
      employee_visa_management/static/description/assets/screenshots/visap.png
  54. BIN
      employee_visa_management/static/description/banner.png
  55. BIN
      employee_visa_management/static/description/icon.png
  56. 669
      employee_visa_management/static/description/index.html
  57. 22
      employee_visa_management/views/hr_employee_views.xml
  58. 35
      employee_visa_management/views/visa_application_views.xml
  59. 108
      employee_visa_management/views/visa_approval_views.xml

47
employee_visa_management/README.rst

@ -0,0 +1,47 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Visa Management
===============
Employees can create visa application, approval of the visa is done by the manager.
We can also print the visa Management report
Configuration
=============
* No additional configurations needed
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (LGPL v3).
(http://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Credits
-------
Developer: (V15) Hridhya D, Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs Edited 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>`__

22
employee_visa_management/__init__.py

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

52
employee_visa_management/__manifest__.py

@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Hridhya D (<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/>.
#
#############################################################################
{
'name': 'Visa Management',
'version': '15.0.1.0.0',
'category': 'Human Resources',
'summary': 'This module helps to manage visa of the employees',
'description': """Employees can create visa application, approval
of the visa is done by the manager
We can also print the visa Management report""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com",
'depends': ['hr'],
'data': [
'security/employee_visa_management_groups.xml',
'security/employee_visa_security.xml',
'security/ir.model.access.csv',
'data/ir_cron_data.xml',
'data/ir_sequence_data.xml',
'views/visa_approval_views.xml',
'views/visa_application_views.xml',
'views/hr_employee_views.xml',
'report/visa_approval_reports.xml',
'report/visa_approval_templates.xml',
],
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': True,
}

13
employee_visa_management/data/ir_cron_data.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Expired Visa Data-->
<record id="ir_cron_end_date" model="ir.cron">
<field name="name">Check Expired Date</field>
<field name="model_id" ref="model_visa_approval"/>
<field name="state">code</field>
<field name="code">model.update_state()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
</record>
</odoo>

14
employee_visa_management/data/ir_sequence_data.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- SEQUENCE -->
<record id="sequence_visa_management" model="ir.sequence">
<field name="name">Visa Management</field>
<field name="code">visa.management</field>
<field name="active">TRUE</field>
<field name="prefix">VP</field>
<field name="padding">9</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
<field name="company_id" eval="False"/>
</record>
</odoo>

6
employee_visa_management/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <employee_visa_management>
#### 02.12.2023
#### Version 15.0.1.0.0
#### ADD
- Initial commit for Visa Management

24
employee_visa_management/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: Hridhya D (<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 . import hr_employee
from . import visa_application
from . import visa_approval

32
employee_visa_management/models/hr_employee.py

@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Hridhya D (<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 HrEmployee(models.Model):
"""The class HrEmployee for the model hr_employee which
is for customization regarding Employee Visa page"""
_inherit = "hr.employee"
employee_visa_ids = fields.One2many('visa.approval', 'employee_id',
string="Visa Application no",
help="Visa Application no")

37
employee_visa_management/models/visa_application.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Hridhya D (<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 VisaApplication(models.Model):
"""This class VisaApplication is to view applied Visa"""
_name = 'visa.application'
_description = 'Visa Application'
name = fields.Char(string='name', readonly=True, help="Name")
visa_approvals_ids = fields.One2many('visa.approval',
'visa_application_no_id',
string="Visa Approvals",
readonly=True, help="Visa Approvals")
company_id = fields.Many2one('res.company', string='Company',
help="If set, corresponding record are shown "
"for this specific company")

225
employee_visa_management/models/visa_approval.py

@ -0,0 +1,225 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Hridhya D (<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 datetime import datetime
from werkzeug import urls
from odoo import api, fields, models, _
class VisaApproval(models.Model):
"""The class VisaApproval is for applying the Visa"""
_name = 'visa.approval'
_description = 'Visa Approval'
_inherit = ['mail.thread', 'mail.activity.mixin']
name = fields.Char(string="Approval No", readonly=True,
default='New', help="Approval No")
application_date = fields.Date(default=datetime.today(),
string="Application Date",
help="Date of Applying Visa")
visa_application_no_id = fields.Many2one('visa.application',
string="Visa Application No",
help="Visa application number"
" of employee")
expire_date = fields.Date(string="Expire Date",
help="Expiry Date of the Visa")
is_expired = fields.Boolean(string='Is Expired',
compute='_compute_is_expired',
search='_search_is_expired',
help="If enabled, the Visa is expired")
state = fields.Selection(
[('draft', 'Draft'), ('submit', 'Submitted'), ('approved', 'Approved'),
('expired', 'Expired'),
('reject', 'Rejected')], default='draft',
help="State of visa approval",
string='State of approval')
employee_id = fields.Many2one("hr.employee", string="Employee Name",
help="Name of the Employee")
visa_type = fields.Selection([
('tourist', 'Tourist'),
('immigration', 'Immigration'),
('student', 'Student'),
('work', 'Work'),
('other', 'Other')], string="Visa Type", help="Type of visa")
nationality_id = fields.Many2one(related="employee_id.country_id",
string="Nationality",
help="Nationality of the employee")
department_id = fields.Many2one(related="employee_id.department_id",
string="Department",
help="Department of the employee")
profession = fields.Char(related="employee_id.job_title",
string="Profession",
help="Profession of the employee")
passport = fields.Char(related="employee_id.passport_id",
string="Passport No",
help="Passport of the employee")
gender = fields.Selection([
('male', 'Male'),
('female', 'Female'),
('other', 'Other')], related="employee_id.gender",
help="Gender of the employee", string="Gender of the employee")
company_id = fields.Many2one('res.company', string="Company",
help="If set, corresponding record are shown "
"for this specific company")
@api.model
def update_state(self):
"""This function updates the state to expired if the visa is expired"""
for rec in self.search([('expire_date', '<', fields.date.today())]):
rec.write({'state': 'expired'})
@api.model
def create(self, vals):
"""This function is used to generate sequence number for visa
approval"""
if vals.get('name', 'New') == 'New':
vals['name'] = self.env['ir.sequence'].next_by_code(
'visa.management') or 'New'
result = super(VisaApproval, self).create(vals)
return result
def action_visa_approve(self):
"""This function is used to approve the visa"""
self.state = 'approved'
base_url = self.env['ir.config_parameter'].sudo().get_param(
'web.base.url')
page_url = urls.url_join(base_url,
'web#id=%(id)s&model=visa.approval&view_type=form'
% {'id': self.id})
mail_content = _('Hi %s,<br>'
'<div style = "text-align: left; margin-top: 16px;">'
'Your VISA Application have been approved.<br/>'
'You can check further details by clicking on the '
'button below:<br/>'
'<a href = "%s"'
'style = "padding: 5px 10px; font-size: 12px; '
'line-height: 18px; color: #FFFFFF; '
'border-color:#875A7B;text-decoration: none; '
'display: inline-block; '
'margin-bottom: 0px; font-weight: 400;'
'text-align: left; vertical-align: middle; '
'cursor: pointer; white-space: nowrap;'
' background-image: none; '
'background-color: #875A7B; border: 1px solid #875A7B;'
' border-radius:3px;">'
'View</a></div>'
) % (self.employee_id.name, page_url)
email_to = self.employee_id.work_email
main_content = {
'subject': _('Visa Approved'),
'body_html': mail_content,
'email_to': email_to
}
mail_id = self.env['mail.mail'].create(main_content)
mail_id.mail_message_id.body = mail_content
mail_id.send()
def action_visa_submit(self):
"""This function is used to submit the visa application and it sends a
mail to the mail given in the company
provided in the address_id in the corresponding employee"""
self.state = 'submit'
base_url = self.env['ir.config_parameter'].sudo().get_param(
'web.base.url')
page_url = urls.url_join(base_url,
'web#id=%(id)s&model=visa.approval&view_type=form'
% {'id': self.id})
mail_content = _('Hi,<br>'
'<div style = "margin-top: 16px;">'
'The details of visa application and further details '
'can be viewed by '
'clicking on the button below:<br/>'
'<a href = "%s"'
'style = "margin-top: 16px; padding: 5px 10px; '
'font-size: 12px; line-height: 18px; color: #FFFFFF; '
'border-color:#875A7B;text-decoration: none; '
'display: inline-block; '
'margin-bottom: 0px; font-weight: 400;'
'text-align: center; vertical-align: middle; '
'cursor: pointer; white-space: nowrap; '
'background-image: none; '
'background-color: #875A7B; border: 1px solid #875A7B;'
' border-radius:3px;">'
'View</a></div>'
) % (page_url)
email_to = self.employee_id.address_id.email
main_content = {
'subject': _('Visa Application'),
'body_html': mail_content,
'email_to': email_to
}
mail_id = self.env['mail.mail'].create(main_content)
mail_id.mail_message_id.body = mail_content
mail_id.send()
def action_renew(self):
"""This function changes the state back to draft state"""
self.write({'state': 'draft'})
def action_reject(self):
"""This function is used to reject the visa application and it sends
a mail to the employee"""
self.state = 'reject'
base_url = self.env['ir.config_parameter'].sudo().get_param(
'web.base.url')
Urls = urls.url_join(base_url,
'web#id=%(id)s&model=visa.approval&view_type=form'
% {'id': self.id})
mail_content = _('Hi %s,<br>'
'<div style = "text-align: center; margin-top: 16px;">'
'Your VISA Application have been rejected.<br/>'
'You can check further details by clicking on the '
'button below:<br/>'
'<a href = "%s"'
'style = "padding: 5px 10px; font-size: 12px;'
' line-height: 18px; color: #FFFFFF; '
'border-color:#875A7B;text-decoration: none; '
'display: inline-block; '
'margin-bottom: 0px; font-weight: 400;'
'text-align: center; vertical-align: middle; '
'cursor: pointer; white-space: nowrap;'
' background-image: none; '
'background-color: #875A7B; border: 1px solid #875A7B;'
' border-radius:3px;">'
'View</a></div>'
) % \
(self.employee_id.name, Urls)
email_to = self.employee_id.work_email
main_content = {
'subject': _('Visa Rejected'),
'body_html': mail_content,
'email_to': email_to
}
mail_id = self.env['mail.mail'].create(main_content)
mail_id.mail_message_id.body = mail_content
mail_id.send()
def _compute_is_expired(self):
"""This function is used to compute the is_expired field"""
now = fields.Datetime.now()
for rec in self:
rec.is_expired = now.date() > rec.expire_date
def _search_is_expired(self):
"""This function is used to search the is_expired field"""
now = fields.Datetime.now()
ids = self.env['visa.approval']._search([('expire_date', '<', now)])
return [('id', 'in', ids)]

13
employee_visa_management/report/visa_approval_reports.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Visa information-->
<record id="action_report_visa_management" model="ir.actions.report">
<field name="name">Visa Management</field>
<field name="model">visa.approval</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">employee_visa_management.report_visa_management</field>
<field name="report_file">employee_visa_management.report_visa_management</field>
<field name="binding_model_id" ref="model_visa_approval"/>
<field name="binding_type">report</field>
</record>
</odoo>

61
employee_visa_management/report/visa_approval_templates.xml

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Visa Management -->
<template id="report_visa_management">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="web.external_layout">
<center>
<h2>Visa Management</h2>
</center>
<div class="text-center"
style="margin-top:50px; font-size:20px">
<strong>Approval No :</strong>
<t t-esc="doc.name"/>
<strong style="margin-left:10px">Employee Name :
</strong>
<t t-esc="doc.employee_id.name"/>
</div>
<table class="table table-bordered" style="margin-top:50px"
border="1">
<thead>
<th name="visa_application_no_id">Visa Application no
</th>
<th name="gender">Gender</th>
<th name="passport">Passport No</th>
<th name="profession">Profession</th>
<th name="expire_date">Expire Date</th>
<th name="visa_type">Visa Type</th>
<th name="state">Status</th>
</thead>
<tbody class="order_body">
<tr>
<td>
<span t-esc="doc.visa_application_no_id.name"/>
</td>
<td>
<span t-esc="doc.gender"/>
</td>
<td>
<span t-esc="doc.passport"/>
</td>
<td>
<span t-esc="doc.profession"/>
</td>
<td>
<span t-esc="doc.expire_date"/>
</td>
<td>
<span t-esc="doc.visa_type"/>
</td>
<td>
<span t-esc="doc.state"/>
</td>
</tr>
</tbody>
</table>
</t>
</t>
</t>
</template>
</odoo>

13
employee_visa_management/security/employee_visa_management_groups.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="employee_management" model="ir.module.category">
<field name="name">Visa</field>
<field name="description">Visa Management</field>
<field name="sequence">20</field>
</record>
<!-- Visa managers -->
<record id="visa_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="employee_management"/>
</record>
</odoo>

14
employee_visa_management/security/employee_visa_security.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Rules -->
<record id="visa_application_rule" model="ir.rule" >
<field name="name">Visa Application multi-company</field>
<field name="model_id" ref="model_visa_application"/>
<field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
</record>
<record id="visa_approval_rule" model="ir.rule">
<field name="name">Visa Approval multi-company</field>
<field name="model_id" ref="model_visa_approval"/>
<field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
</record>
</odoo>

3
employee_visa_management/security/ir.model.access.csv

@ -0,0 +1,3 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
access_visa_approval_user,access.visa.approval.user,model_visa_approval,base.group_user,1,1,1,1
access_visa_application_user,access.visa.application.user,model_visa_application,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_visa_approval_user access.visa.approval.user model_visa_approval base.group_user 1 1 1 1
3 access_visa_application_user access.visa.application.user model_visa_application base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
employee_visa_management/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
employee_visa_management/static/description/assets/modules/employee_checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
employee_visa_management/static/description/assets/modules/employee_checklist_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
employee_visa_management/static/description/assets/modules/employee_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
employee_visa_management/static/description/assets/modules/employee_insurance.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
employee_visa_management/static/description/assets/modules/employee_stages.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
employee_visa_management/static/description/assets/modules/employee_vehicle_request.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visa0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visa1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visa2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visag0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visag1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visag2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visag3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visam0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visam1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visam2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
employee_visa_management/static/description/assets/screenshots/visap.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
employee_visa_management/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
employee_visa_management/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

669
employee_visa_management/static/description/index.html

@ -0,0 +1,669 @@
<div class="container" style="padding: 1rem !important; margin-bottom: 1rem !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between"
style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
</div>
</div>
<div class="container" style="padding: 0rem 1.5rem 4rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Visa Management</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Manage Visa of the Employees
</p>`
<img src="./assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto"/>
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
<div class="row">
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
This module helps to systematically manage the visa of the employee. Using this app we can apply for
visa and also renew the visa after
visa gets expired.
</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Helps to Manage Employee Visa</h4>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Manger receives an email if an employee has applied for Visa/ Renewal of Visa</h4>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee receives an Email if the manager has approved or rejected the application.
</h4>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Applying for Visa</h4>
<img src="assets/screenshots/visa0.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The employee can apply for Visa by filling the visa application form. On filling the employee name,
remaining details of the employee gets filled automatically based on the information given.<br/>
Here, employee can also choose the visa type. After filling the form, the employee clicks on the submit
button.<br/> The employees can even renew the application if the visa is expired. In the expired application forms an addition button appears inorder to renew the visa.
</p>
<img src="assets/screenshots/visa1.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
It sends a mail to the company mail based on the submission, where the company can approve and reject
the application.
</p>
<img src="assets/screenshots/visa2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Manager</h4>
<p>On clicking view button in the mail, it redirects us to the visa
application form. Here, managers can
either approve or reject the application.<br/>
On rejecting, it sends mail back to the employee with content
that the application is rejected.<br/>
On approving, it sends a mail with content that the application
have been approved.</p>
<img src="assets/screenshots/visam0.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<p>And the details such as visa application number and expire date can be filled. These 2 fields can only be
filled by the manager.</p>
<img src="assets/screenshots/visam1.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Visa Report</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The employee can print the application form on clicking the print button.
</p>
<img src="assets/screenshots/visap.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Visa Applications</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
All the visa applications can be viewed from the visa application menu under visa management menu.</p>
<img src="assets/screenshots/visam2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
When checking the employee we can see a new page which contains information about the visa</p>
<img src="assets/screenshots/visam2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
How to set Visa Manager?</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Inorder to set the manager, who can approve and reject the application. Go to the setting.
</p>
<img src="assets/screenshots/visag0.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p>
Under user and companies menu select the groups</p>
<img src="assets/screenshots/visag1.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<p>
Select Manager group and add the manager.</p>
<img src="assets/screenshots/visag2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<img src="assets/screenshots/visag3.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/employee_check_list/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_checklist_image.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/15.0/employee_stages/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_stages.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/15.0/employee_vehicle_request/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_vehicle_request.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/hr_insurance/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_insurance.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/15.0/oh_employee_check_list/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_checklist.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/15.0/employee_documents_expiry/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_image.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;">
<span class="carousel-control-prev-icon"><i class="fa fa-chevron-left"
style="font-size:24px"></i></span> </a>
<a class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</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: #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>
</section>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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>
</section>
<!-- END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-whatsapp mr-2"></i>+91 86068 27707</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto"/>
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>
</div>

22
employee_visa_management/views/hr_employee_views.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Form view -->
<record id="view_employee_form" model="ir.ui.view">
<field name="name"> hr.employee.view.form.inherit.employee.visa.management</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='hr_settings']" position="after">
<page string="Employee Visa">
<field name="employee_visa_ids">
<tree editable='bottom'>
<field name="name"/>
<field name="visa_type"/>
<field name="state"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
</odoo>

35
employee_visa_management/views/visa_application_views.xml

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--FORM VIEW-->
<record id="visa_application_view_form" model="ir.ui.view">
<field name="name">visa.application.view.form</field>
<field name="model">visa.application</field>
<field name="arch" type="xml">
<form string="visa_application_view_form">
<sheet>
<h1 class="head-class">
<field name="name" options="{'no_create': True}"/>
</h1>
<group>
<group>
<field name="company_id"/>
</group>
<field name="visa_approvals_ids"/>
</group>
</sheet>
</form>
</field>
</record>
<!--Action-->
<record id="visa_application_action" model="ir.actions.act_window">
<field name="name">Visa Applications</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">visa.application</field>
<field name="view_mode">tree,form</field>
</record>
<!--MENU-->
<menuitem id="visa_application" name="Visa Applications"
parent="visa_management_menu"
action='visa_application_action'
sequence="8"/>
</odoo>

108
employee_visa_management/views/visa_approval_views.xml

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form view -->
<record id="visa_approval_view_form" model="ir.ui.view">
<field name="name">visa.approval.view.form</field>
<field name="model">visa.approval</field>
<field name="arch" type="xml">
<form>
<header>
<field name="state" widget="statusbar"
statusbar_visible="draft,approved,expired"/>
<button name="action_visa_approve" string="Approve" class="oe_highlight" type="object"
groups="employee_visa_management.visa_manager" states="submit,reject"/>
<button name="action_visa_submit" string="Submit" class="oe_highlight" type="object" states="draft,reject"/>
<button name="action_renew" string="Renew" class="oe_highlight" type="object" states="expired"/>
<button name="action_reject" string="Reject" class="oe_highlight" type="object" states="submit,approved"
groups="employee_visa_management.visa_manager"/>
</header>
<sheet>
<h1 class="head-class">
<field name="name"/>
</h1>
<group col="4" colspan="2">
<field name="application_date"/>
<field name="employee_id"/>
<field name="visa_application_no_id" readonly="1"/>
<field name="expire_date" readonly="1"/>
<field name="visa_type"/>
<field name="company_id"/>
</group>
<notebook>
<page string="Visa Application">
<group col="4" colspan="2">
<field name="employee_id"/>
<field name="profession"/>
<field name="passport"/>
<field name="gender"/>
<field name="department_id"/>
</group>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<!-- Inherit form view -->
<record id="visa_approval_view_form_inherit" model="ir.ui.view">
<field name="name">visa.approval.view.form.inherit.employee.visa.management</field>
<field name="model">visa.approval</field>
<field name="inherit_id" ref="employee_visa_management.visa_approval_view_form"/>
<field name="groups_id" eval="[(4, ref('employee_visa_management.visa_manager'))]"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='visa_application_no_id']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
<xpath expr="//field[@name='expire_date']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
</field>
</record>
<!-- Tree view -->
<record id="visa_approval_tree" model="ir.ui.view">
<field name="name">visa.approval.view.tree</field>
<field name="model">visa.approval</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="application_date"/>
<field name="expire_date"/>
<field name="state"/>
</tree>
</field>
</record>
<!-- Search view -->
<record id="view_expired_search" model="ir.ui.view">
<field name="name">visa.approval.search</field>
<field name="model">visa.approval</field>
<field name="arch" type="xml">
<search string="Visa">
<filter name="is_expired" string="Is Expired" domain="[('is_expired', '=', True)]"/>
</search>
</field>
</record>
<!-- Action -->
<record id="visa_approval_action" model="ir.actions.act_window">
<field name="name">Visa Approval</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">visa.approval</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_expired_search"/>
</record>
<!-- Menu -->
<menuitem id="employee_visa_menu" name="Visa Management"
web_icon="employee_visa_management,static/description/icon.png"
sequence="2"/>
<menuitem id="visa_management_menu" name="Visa Management"
parent="employee_visa_menu"
sequence="6"/>
<menuitem id="visa_approval_menu" name="Visa Approval"
parent="visa_management_menu"
action='visa_approval_action'
sequence="4"/>
</odoo>
Loading…
Cancel
Save