add new module

This commit is contained in:
sonal arora
2020-07-21 10:09:46 +00:00
parent 800e7fdceb
commit c0d10e3fbe
1063 changed files with 243750 additions and 5 deletions

49
employee_background/README.rst Executable file
View File

@@ -0,0 +1,49 @@
Employee Background Verification v13
====================================
This module helps you to the verification of employee background.
Features
========
* The HR Manager can choose an employee and assign to a verification agent.
* Assigned agent collect the details and send back to the manager.
* The Agent can submit the expense and manager can approve the expense submitted.
* The HR Manager can approve and reject the employee after verifying the result
* Manager can send appropriate mails to the employee.
Depends
=======
[hr] addon Odoo
[hr_recruitment] addon Odoo
[portal] addon Odoo
[website] addon Odoo
Tech
====
* [Python] - Models
* [XML] - Odoo views
Installation
============
- www.odoo.com/documentation/13.0/setup/install.html
- Install our custom addon
Bug Tracker
===========
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Credits
=======
* Cybrosys Techno Solutions <https://www.cybrosys.com>
Author
------
Developer: Tintuk Tomin @ cybrosys. odoo@cybrosys.in
Maintainer
----------
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import models
from . import controllers

View File

@@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Tintuk Tomin(<https://www.cybrosys.com>)
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
{
'name': 'Open HRMS Employee Background Verification',
'version': '13.0.1.0.0',
'summary': """Verify the background details of an Employee """,
'category': 'Generic Modules/Human Resources',
'description': 'Manage the employees background verification Process employee varification ',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['base', 'hr', 'hr_recruitment', 'mail', 'hr_employee_updation', 'contacts', 'portal', 'website'],
'data': [
'security/ir.model.access.csv',
'views/view_verification.xml',
'views/res_partner_agent_view.xml',
'views/agent_portal_templates.xml',
'data/default_mail.xml'
],
'demo': ['data/demo_data.xml'],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import portal

View File

@@ -0,0 +1,80 @@
# -*- coding: utf-8 -*-
import base64
from odoo import http, _
from odoo.exceptions import AccessError, UserError
from odoo.http import request
from odoo.tools import consteq
from odoo.addons.portal.controllers.mail import _message_post_helper
from odoo.addons.portal.controllers.portal\
import CustomerPortal, pager as portal_pager, get_records_pager
class CustomerPortal(CustomerPortal):
@http.route(['/my/records', '/my/quotes/page/<int:page>'], type='http', auth="user", website=True)
def portal_my_records(self, page=1, date_begin=None, date_end=None, sortby=None, **kw):
partner = request.env.user.partner_id
employee_records = request.env['employee.verification'].sudo().search(['&',('state','=','assign'),('agency','=',partner.id)])
varification_count = request.env['employee.verification'].sudo().search_count(['&',('state','=','assign'),('agency','=',partner.id)])
pager = portal_pager(
url="/my/quotes",
url_args={'date_begin': date_begin, 'date_end': date_end, 'sortby': sortby},
total=varification_count,
page=page,
step=self._items_per_page
)
values={
'date': date_begin,
'records': employee_records.sudo(),
'page_name': 'employee',
'pager': pager,
# 'archive_groups': archive_groups,
'default_url': '/my/quotes',
# 'searchbar_sortings': searchbar_sortings,
'sortby': sortby,
}
return request.render("employee_background.portal_my_records", values)
@http.route(['/my/details/<int:order>'], type='http', auth="public", website=True)
def portal_record_page(self, order=None, access_token=None, **kw):
try:
data = request.env['employee.verification'].sudo().browse(order)
except AccessError:
return request.redirect('/my')
values = {
'page_name': 'employee_details',
'records': data
}
return request.render("employee_background.portal_record_page", values)
@http.route('/test/path', type='http', auth="public", website=True, csrf=False)
def portal_order_report(self, **kw):
employee = request.env['employee.verification'].sudo().browse(kw['employee_token'])
if kw['description'] or kw.get('attachment', False):
if kw['description']:
employee.description_by_agency = kw['description']
if kw.get('attachment', False):
Attachments = request.env['ir.attachment']
name = kw.get('attachment').filename
file = kw.get('attachment')
attachment = file.read()
attachment_id = Attachments.sudo().create({
'name': name,
'datas_fname': name,
'res_name': name,
'type': 'binary',
'res_model': 'employee.verification',
'res_id': kw['employee_token'],
'datas': base64.b64encode(attachment),
})
employee.agency_attachment_id = attachment_id
employee.state = 'submit'
values = {
'page_name': 'employee_submit'
}
return request.render("employee_background.portal_record_completed",values)
else:
raise UserError(_("You need to Enter description or attact a file before submit."))

View File

@@ -0,0 +1,22 @@
<odoo>
<data>
<record id="assign_agency_email_template" model="mail.template">
<field name="name">Assign verification e-mail template</field>
<field name="subject">Verification of ${object.employee.name}</field>
<field name="email_from">${user.email}</field>
<field name="email_to">${object.agency.login}</field>
<field name="report_name">${(object.resume_applicant or '').replace('/','_')}</field>
<field name="model_id" ref="model_employee_verification"/>
<field name="auto_delete" eval="False"/>
<field name="body_html">
<![CDATA[
<p>Dear ${object.agency.name},<p>
<p>A new request is created to varify our employee <b> ${object.employee.name} </b> .
To complete the Employee Verification process collect the required details and submit it as soon as possible.<p>
<p>You can reply to this email if you have any questions.</p>
<p>Thank you,</p>
]]>
</field>
</record>
</data>
</odoo>

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="employee_background" model="hr.employee">
<field name="name">James Villiam</field>
<field name="job_title">Technician</field>
<field name="work_location">Building 4, Third Floor</field>
<field name="work_phone">(376)-356-7885</field>
<field name="work_email">Villiam@example.com</field>
<field name="image_1920" type="base64" file="employee_background/static/image/employee_backgrnd.jpeg"/>
</record>
<record id="employee_address_one" model="res.partner">
<field name="name">James Villiam</field>
</record>
<record id="employee_address_two" model="res.partner">
<field name="name">ascent</field>
</record>
<record id="employee_address_three" model="res.partner">
<field name="name">Doriz</field>
</record>
<record id="verification_demo_one" model="employee.verification">
<field name="employee" ref="employee_background"/>
<field name="address" ref="employee_address_one"/>
<field name="expected_date">2020-03-02 11:17:56</field>
<field name="agency" ref="employee_address_three"/>
</record>
</data>
</odoo>

View File

@@ -0,0 +1,380 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * employee_background
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-12 05:28+0000\n"
"PO-Revision-Date: 2020-02-12 05:28+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: employee_background
#: model:mail.template,body_html:employee_background.assign_agency_email_template
msgid ""
"\n"
" \n"
" <p>Dear ${object.agency.name},<p>\n"
" <p>A new request is created to varify our employee <b> ${object.employee.name} </b> .\n"
" To complete the Employee Verification process collect the required details and submit it as soon as possible.<p>\n"
" <p>You can reply to this email if you have any questions.</p>\n"
" <p>Thank you,</p>\n"
" \n"
"\t "
msgstr ""
#. module: employee_background
#: model:mail.template,report_name:employee_background.assign_agency_email_template
msgid "${(object.resume_applicant or '').replace('/','_')}"
msgstr ""
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_home_menu_employee
msgid "<span style=\"padding-left:8px;\">Employees</span>"
msgstr "<span style=\"padding-left:8px;\">الموظفين</span>"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__address
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_records
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Address"
msgstr "عنوان"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__agency
msgid "Agency"
msgstr "وكالة"
#. module: employee_background
#: code:addons/employee_background/models/employee_verification.py:0
#, python-format
msgid "Agency is not assigned. Please select one of the Agency."
msgstr ".لم يتم تعيين الوكالة. يرجى اختيار واحدة من الوكالة"
#. module: employee_background
#: model:ir.actions.act_window,name:employee_background.approved_employee_verification
msgid "Approved Verification"
msgstr "التحقق المعتمدة"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.employee_disciplinary_form
msgid "Assign to agency"
msgstr "التنازل عن الوكالة"
#. module: employee_background
#: model:ir.model.fields.selection,name:employee_background.selection__employee_verification__state__assign
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "Assigned"
msgstr "تعيين"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__assigned_by
msgid "Assigned By"
msgstr "عين من"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__assigned_date
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Assigned Date"
msgstr "تاريخ محدد"
#. module: employee_background
#: model:ir.actions.act_window,name:employee_background.assigned_employee_verification
msgid "Assigned Verification"
msgstr "التحقق المعين"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__agency_attachment_id
#: model_terms:ir.ui.view,arch_db:employee_background.employee_disciplinary_form
msgid "Attachment"
msgstr "المرفق"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_employee_verification__agency_attachment_id
msgid "Attachment from Agency"
msgstr "مرفق من الوكالة"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__field_check
msgid "Check"
msgstr "التحقق من"
#. module: employee_background
#: model_terms:ir.actions.act_window,help:employee_background.action_employee_verification
msgid "Click to create a new Employee verification."
msgstr ".انقر لإنشاء التحقق الموظف الجديد"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__company_id
msgid "Company"
msgstr "شركة"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "Completed"
msgstr "منجز"
#. module: employee_background
#: model:ir.model,name:employee_background.model_res_partner
msgid "Contact"
msgstr "جهة الاتصال"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__create_uid
msgid "Created by"
msgstr "انشأ من قبل"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__create_date
msgid "Created on"
msgstr "تم إنشاؤها على"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__description_by_agency
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Description"
msgstr "وصف"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__display_name
msgid "Display Name"
msgstr "اسم العرض"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Download"
msgstr "تحميل"
#. module: employee_background
#: model:ir.model.fields.selection,name:employee_background.selection__employee_verification__state__draft
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "Draft"
msgstr "مشروع"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__employee
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_records
msgid "Employee"
msgstr "موظف"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_completed
msgid "Employee Details"
msgstr "تفاصيل الموظف"
#. module: employee_background
#: model:ir.actions.act_window,name:employee_background.action_employee_verification
#: model:ir.ui.menu,name:employee_background.employee_verification_menu
#: model_terms:ir.ui.view,arch_db:employee_background.employee_disciplinary_form
#: model_terms:ir.ui.view,arch_db:employee_background.employee_disciplinary_tree
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_home_agent
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "Employee Verification"
msgstr "التحقق من الموظفين"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_res_partner__verification_agent
#: model:ir.model.fields,field_description:employee_background.field_res_users__verification_agent
msgid "Employee Verification agent"
msgstr "موظف التحقق من الموظف"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_home_menu_employee
msgid "Employees"
msgstr "الموظفين"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_employee_verification__address
msgid "Enter here the private address of the employee, not the one linked to your company."
msgstr ".أدخل هنا العنوان الخاص للموظف ، وليس العنوان المرتبط بشركتك"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__expected_date
msgid "Expected Date"
msgstr "التاريخ المتوقع"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Expected completion Date"
msgstr "تاريخ الإنتهاء المتوقع"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_employee_verification__expected_date
msgid "Expected date of completion of background varification"
msgstr "التاريخ المتوقع لإكمال تنوع الخلفية"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "Group By"
msgstr "مجموعة من"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__id
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__verification_id
msgid "ID"
msgstr "هوية شخصية"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.employee_disciplinary_form
msgid "Information from Agency"
msgstr "معلومات من الوكالة"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.res_partner_agent_form
msgid "Is Agent"
msgstr "هو الوكيل"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification____last_update
msgid "Last Modified on"
msgstr "آخر تعديل في"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__write_uid
msgid "Last Updated by"
msgstr "آخر تحديث بواسطة"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__write_date
msgid "Last Updated on"
msgstr "آخر تحديث في"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_res_partner__verification_agent
#: model:ir.model.fields,help:employee_background.field_res_users__verification_agent
msgid "Mark it if the partner is an Employee Verification Agent"
msgstr "حدده إذا كان الشريك هو وكيل التحقق من الموظفين"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Name"
msgstr "اسم"
#. module: employee_background
#: code:addons/employee_background/models/employee_verification.py:0
#, python-format
msgid "No attachments available."
msgstr ".لا المرفقات المتاحة"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_records
msgid "Order Date"
msgstr "تاريخ الطلب"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Personal Details"
msgstr "تفاصيل شخصية"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Private details"
msgstr "تفاصيل خاصة"
#. module: employee_background
#: model:ir.actions.act_window,name:employee_background.refused_employee_verification
msgid "Refused Verification"
msgstr "رفض التحقق"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__resume_uploaded
msgid "Resume of Applicant"
msgstr "استئناف مقدم الطلب"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "State"
msgstr "حالة"
#. module: employee_background
#: model:ir.model.fields,field_description:employee_background.field_employee_verification__state
#: model_terms:ir.ui.view,arch_db:employee_background.search_view_employee
msgid "Status"
msgstr "الحالة"
#. module: employee_background
#: model:ir.actions.act_window,name:employee_background.submitted_employee_verification
msgid "Submitted Verification"
msgstr "تم التحقق"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "There are currently no orders for your account."
msgstr ".لا يوجد حاليًا أي طلبات لحسابك"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_my_records
msgid "There are currently no quotations for your account."
msgstr "لا يوجد حاليًا عروض أسعار لحسابك"
#. module: employee_background
#: code:addons/employee_background/models/employee_verification.py:0
#, python-format
msgid "There should be at least address or resume of the employee."
msgstr "يجب أن يكون هناك عنوان أو استئناف الموظف على الأقل"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Upload"
msgstr "رفع"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_page
msgid "Upload file if any"
msgstr "تحميل الملف إن وجد"
#. module: employee_background
#: model:ir.model.fields.selection,name:employee_background.selection__employee_verification__state__submit
msgid "Varification Completed"
msgstr "v"
#. module: employee_background
#: model:mail.template,subject:employee_background.assign_agency_email_template
msgid "Verification of ${object.employee.name}"
msgstr "${object.employee.name} التحقق من"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_employee_verification__resume_uploaded
msgid "You can attach the copy of your document"
msgstr "يمكنك إرفاق نسخة من المستند"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_employee_verification__agency
msgid "You can choose a Verification Agent"
msgstr "يمكنك اختيار وكيل التحقق"
#. module: employee_background
#: model:ir.model.fields,help:employee_background.field_employee_verification__employee
msgid "You can choose the employee for background verification"
msgstr "يمكنك اختيار الموظف للتحقق من الخلفية"
#. module: employee_background
#: code:addons/employee_background/models/employee_verification.py:0
#, python-format
msgid "You cannot delete the verification created."
msgstr ".لا يمكنك حذف التحقق الذي تم إنشاؤه"
#. module: employee_background
#: code:addons/employee_background/controllers/portal.py:0
#, python-format
msgid "You need to Enter description or attact a file before submit."
msgstr ".تحتاج إلى إدخال وصف أو ملف ملف قبل إرسال"
#. module: employee_background
#: model_terms:ir.ui.view,arch_db:employee_background.portal_record_completed
msgid "Your report successfully submitted"
msgstr "تم إرسال تقريرك بنجاح"
#. module: employee_background
#: model:ir.model,name:employee_background.model_employee_verification
msgid "employee.verification"
msgstr ""

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import res_partner_agency
from . import employee_verification

View File

@@ -0,0 +1,68 @@
# -*- coding: utf-8 -*-
from datetime import date
from odoo import models, fields, api, _
from odoo.exceptions import UserError
import requests
class EmployeeVerification(models.Model):
_name = 'employee.verification'
_rec_name = 'verification_id'
verification_id = fields.Char('ID', readonly=True, copy=False, help="Verification Id")
employee = fields.Many2one('hr.employee', string='Employee', required=True, help='You can choose the employee for background verification')
address = fields.Many2one(related='employee.address_home_id', string='Address', readonly=False)
assigned_by = fields.Many2one('res.users', string='Assigned By', readonly=1, default=lambda self: self.env.uid, help="Assigned Login User")
agency = fields.Many2one('res.partner', string='Agency', domain=[('verification_agent', '=', True)], help='You can choose a Verification Agent')
resume_uploaded = fields.Many2many('ir.attachment', string="Resume of Applicant",
help='You can attach the copy of your document', copy=False)
description_by_agency = fields.Char(string='Description', readonly=True, help="Description")
agency_attachment_id = fields.Many2one('ir.attachment', string='Attachment', help='Attachment from Agency')
field_check = fields.Boolean(string='Check', invisible=True)
assigned_date = fields.Date(string="Assigned Date", readonly=True, default=date.today(), help="Record Assigned Date")
expected_date = fields.Date(state='Expected Date', help='Expected date of completion of background verification')
state = fields.Selection([
('draft', 'Draft'),
('assign', 'Assigned'),
('submit', 'Varification Completed'),
], string='Status', default='draft')
company_id = fields.Many2one('res.company', 'Company',
default=lambda self: self.env['res.company'].browse(1))
def download_attachment(self):
if self.agency_attachment_id:
return {
'type': 'ir.actions.act_url',
'url': '/web/binary/image?model=ir.attachment&field=datas&id=%s&filename=%s' % (self.agency_attachment_id.id,self.agency_attachment_id.name),
'target': 'new',
}
else:
raise UserError(_("No attachments available."))
def assign_statusbar(self):
if self.agency:
if self.address or self.resume_uploaded:
self.state = 'assign'
template = self.env.ref('employee_background.assign_agency_email_template')
self.env['mail.template'].browse(template.id).send_mail(self.id, force_send=True)
else:
raise UserError(_("There should be at least address or resume of the employee."))
else:
raise UserError(_("Agency is not assigned. Please select one of the Agency."))
# sequence generation for employee verification
@api.model
def create(self, vals):
seq = self.env['ir.sequence'].next_by_code('res.users') or '/'
vals['verification_id'] = seq
return super(EmployeeVerification, self).create(vals)
def unlink(self):
if self.state not in 'draft':
raise UserError(_('You cannot delete the verification created.'))
super(EmployeeVerification, self).unlink()

View File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class ResPartnerAgency(models.Model):
_inherit = 'res.partner'
verification_agent = fields.Boolean(string='Employee Verification agent',
default=False,
help="Mark it if the partner is an Employee Verification Agent")

View File

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
import logging
from odoo import models
class DefaultTemplateXls(models.AbstractModel):
_name = 'report.employee_background.default_verification_details'
# _inherit = 'report.report_xlsx.abstract'
_logger = logging.getLogger(__name__)
try:
_inherit = 'report.report_xlsx.abstract'
except ImportError:
_logger.debug('Cannot find report_xlsx module for version 11')
def generate_xlsx_report(self, workbook, data, obj):
sheet = workbook.add_worksheet()
format1 = workbook.add_format({'font_size': 16, 'align': 'center', 'bg_color': '#D3D3D3', 'bold': True})
format2 = workbook.add_format({'font_size': 10, 'bold': True})
format3 = workbook.add_format({'font_size': 10})
sheet.merge_range('B1:E1', 'Required Details', format1)
sheet.merge_range('A2:B2', 'Applicant Name:', format3)
sheet.merge_range('A3:C3', 'Information Required', format2)
sheet.merge_range('D3:F3', 'Details Given', format2)
sheet.merge_range('G3:I3', 'Details(Correct/Wrong)', format2)
sheet.merge_range('A5:C5', 'Education Details', format3)
sheet.merge_range('B6:C6', 'Graduation', format3)
sheet.merge_range('D6:F6', '', format3)
sheet.merge_range('G6:I6', '', format3)
sheet.merge_range('B7:C7', 'Plus Two', format3)
sheet.merge_range('D7:F7', '', format3)
sheet.merge_range('G7:I7', '', format3)
sheet.merge_range('A9:C9', 'Work Details', format3)
sheet.merge_range('D9:F9', '', format3)
sheet.merge_range('G9:I9', '', format3)
sheet.merge_range('A11:C11', 'Criminal Background', format3)
sheet.merge_range('D11:F11', '', format3)
sheet.merge_range('G11:I11', '', format3)
sheet.merge_range('A13:C13', 'Disciplinary Allegation in Previous Work Locations', format3)
sheet.merge_range('D13:F13', '', format3)
sheet.merge_range('G13:I13', '', format3)

View File

@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
manager_view_verification,view_verification_for_manager,model_employee_verification,hr.group_hr_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 manager_view_verification view_verification_for_manager model_employee_verification hr.group_hr_manager 1 1 1 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -0,0 +1,660 @@
<div class="row"
style="margin: 0;position: relative;color: #000;background-position: center;background: #ffffff;border-bottom: 1px solid #e4e4e4;text-align: center; margin: auto; display: flex;justify-content: center;">
<a href="https://www.openhrms.com/" target="_blank"><img src="images/openhrms.png"
style=" width: 293px; padding: 1rem 0rem; margin: auto"
alt="cybrosys-logo"></a>
</div>
<div class="row"
style="margin:75px 0;position: relative;color: #000;background-position: center;background: #ffffff;border-bottom: 1px solid #e4e4e4; padding-bottom: 30px;">
<div class="col-md-7 col-sm-12 col-xs-12" style="padding: 0px">
<div style=" margin: 0 0 0px;padding: 20px 0 10;font-size: 23px;line-height: 35px;font-weight: 400;color: #000;border-top: 1px solid rgba(255,255,255,0.1);border-bottom: 1px solid rgba(255,255,255,0.11);text-align: left;">
<h1 style="font-size: 39px;font-weight: 600;margin: 0px !important;"> Open HRMS Employee Background Verification </h1>
<h3 style="font-size: 21px;margin-top: 8px;position: relative;"> Manage Employee Background Verification </h3>
</div>
<h2 style="font-weight: 600;font-size: 1.8rem;margin-top: 15px;">Key Highlights</h2>
<ul style=" padding: 0 1px; list-style: none; ">
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Managing Employee Background Verification
</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Agent can collect the details and submit to the manager.
</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Automated mail to the agent regarding the varification.
</li>
</ul>
</div>
<div class="col-md-5 col-sm-12 col-xs-12"><img src="images/verify.png" class="img-responsive" alt=""></div>
</div>
<div>
<section class="oe_container" style="padding: 1rem 0rem 1rem; background-color: #ffffff !important;">
<div class="row py-4 px-3">
<div class="w-100" style="padding-top:30px;padding-bottom:45px;border-radius: 10px;">
<ul role="tablist" class="nav nav-pills justify-content-center" data-tabs="tabs" id="pills-tab"
style="border: none;background: unset;">
<li class="nav-item mr-1 mb-3"
style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #d31c22;background-color: #00438b;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;">
<a id="pills-home-tab" data-toggle="pill" href="#pills-home" role="tab"
aria-controls="pills-home" aria-selected="true" class="nav-link active show"
style="color: #fff;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;">Overview </a>
</li>
<li class="nav-item mr-1 mb-3"
style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #d31c22;background-color: #00438b;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;">
<a id="pills-home-tab" data-toggle="pill" href="#pills-home1" role="tab"
aria-controls="pills-home" aria-selected="true" class="nav-link "
style="color: #fff;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;">Configuration </a>
</li>
<li class="nav-item mr-1 mb-3"
style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #d31c22;background-color: #00438b;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;">
<a id="pills-home-tab" data-toggle="pill" href="#pills-features" role="tab"
aria-controls="pills-home" aria-selected="true" class="nav-link "
style="color: #fff;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;">Features </a>
</li>
<li class="nav-item mr-1 mb-3"
style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #ffffff;background-color: #00438b;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;">
<a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-profile" role="tab"
aria-controls="pills-profile" aria-selected="false"
style="color: #fff;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;">Screenshots </a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent"
style="padding-top: 30px; padding-bottom: 30px; padding: 30px;">
<div class="px-3 pt-1 tab-pane fade active show" id="pills-home" role="tabpanel" aria-labelledby="
pills-home-tab">
<!-- Overview-->
<h2 style="font-weight: 600;text-align: center;width: 100%;">Overview</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<h3 class="oe_slogan"
style="text-align: center;font-size: 19px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 31px;font-weight: 400;letter-spacing: .5px;margin-bottom: 21px;">
A well functioning human resource department will have a number of process. Employee Background Verification is the tool all you need for. Employee Background Verification instantly verifies the employee's background through a verification agent to check employee credentials. It thereby quickens the decision of accepting or rejecting the employee.
</h3>
</div>
<div class="px-3 pt-1 tab-pane fade " id="pills-home1" role="tabpanel" aria-labelledby="
pills-home-tab">
<!-- Configuration-->
<h2 style="font-weight: 600;text-align: center;width: 100%;"> Configuration</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<h3 class="oe_slogan"
style="text-align: center;font-size: 19px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 31px;font-weight: 400;letter-spacing: .5px;margin-bottom: 21px;">
To get the portal access for the agent, You need to give the portal access permission manually.
</h3>
</div>
<div class="px-3 pt-1 tab-pane fade " id="pills-features" role="tabpanel" aria-labelledby="
pills-home-tab">
<!-- feature tab-->
<h2 style="font-weight: 600;text-align: center;width: 100%;"> Open HRMS Employee Background Verification </h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<ul>
<li class="mb8"
style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
Managing Employee Background Verification
</li>
<li class="mb8"
style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
Agent can collect the details and submit to the manager.
</li>
<li class="mb8"
style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
Automated mail to the agent regarding the verification.
</li>
</ul>
</div>
<!-- Screenshot tab-->
<div class="px-3 tab-pane fade" id="pills-profile" role="tabpanel"
aria-labelledby="pills-profile-tab">
<div class="tab-pane">
<h2 style="font-weight: 600;text-align: center;width: 100%;">Screenshots</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<div>
<section class="oe_container">
<div id="demo" class="row carousel slide mb32" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; " alt="check">
Agent Configuration -> You need to put tick in the checkbox to enable the normal partner as an agent. Also you need to enter the email id to get the email notification to the agent.
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/1verify.png"></div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; " alt="check">
Option to get the portal access management.
<br>
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/2verify.png"></div>
</div>
</div>
<!-- <div id="demo" class="row carousel slide mb32" data-ride="carousel">-->
<!-- <div class="carousel-inner">-->
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Portal access form view.
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/3verify.png">
</div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Employee background verification form view.
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/4verify.png">
</div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Employee background verification form view
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/5verify.png">
</div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Agent portal form view.
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/6verify.png">
</div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Employees list of verification requests
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/7verify.png">
</div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
Employee form view for agent. Agent can download the resume uploaded by the admin. Also the agent have the provision for entering the description and upload files to the admin.
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/8verify.png">
</div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16"
style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; "
alt="check">
After the details submitted by the agent a new notebook will appear with page name 'Information by Agency'. Admin will able to view the description and the can download the file if there is any.
</h3>
<div style=""><img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/9verify.png">
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#demo" 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="#demo" 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>
</section>
</div>
</div>
</div>
<!-- faq tab-->
<div class="px-2 px-lg-4 pt-3 tab-pane fade" id="pills-contact"
role="tabpanel"
aria-labelledby="pills-contact-tab">
<ul class="list-unstyled">
</ul>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<h2 style="font-weight: 600;text-align: center;margin-bottom: 25px;width: 100%;">Suggested Products</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<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/13.0/ohrms_core/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/core_image.gif">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left;">
<a
href="https://apps.odoo.com/apps/modules/13.0/hrms_dashboard/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/dash_image.gif">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float: left;">
<a
href="https://apps.odoo.com/apps/modules/13.0/oh_hr_zk_attendance/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/bio_image.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/13.0/oh_appraisal/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/appraisal_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/13.0/hr_employee_shift/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/shift_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/13.0/ohrms_salary_advance/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block"
style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/salary_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>
</section>
<section class="row" style="padding: 2rem 3rem 1rem;margin:0px">
<h2 style="font-weight: 600;margin-bottom: 20px;text-align: center;width: 100%;">Our Service</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<div class="row" style=" display: flex; justify-content: center; flex-wrap: wrap;width: 100%; ">
<!-- <div style="display:flex;padding-top: 20px;justify-content: space-between;"> -->
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"><a
href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-customization.png"
style="width: 100%;border-radius: 100%;"/> </a></div>
<h3 class="oe_slogan"
style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Customization </a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"><a
href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-erp-implementation.png"
style="width: 100%;border-radius: 100%;"/> </a></div>
<h3 class="oe_slogan"
style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Implementation </a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"><a
href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-erp-integration.png"
style="width: 100%;border-radius: 100%;"/> </a></div>
<h3 class="oe_slogan"
style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Integration </a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"><a
href="https://www.cybrosys.com/odoo-erp-support/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-erp-support.png"
style="width: 100%;border-radius: 100%;"/> </a></div>
<h3 class="oe_slogan"
style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Support</a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"><a
href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank"> <img
src="https://www.cybrosys.com/images/hire-odoo-developer.png"
style="width: 100%;border-radius: 100%;"/> </a></div>
<h3 class="oe_slogan"
style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Hire Odoo Developers</a>
</h3>
</a>
</div>
<!-- </div> -->
</div>
</section>
<section class="row" style="padding: 2rem 3rem 1rem;margin:0px">
<div class="row" style="margin: 0">
<h2 style="font-weight: 600;margin-bottom: 20px;text-align: center;width: 100%;">Our Industries</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<!-- <div style="display:flex;justify-content: space-between;flex-wrap:wrap;"> -->
<div class="row" style="width: 100%">
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank"
style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
Trading </a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
Easily procure and sell your products.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/"
target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-2.png"
alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;" style=" margin-bottom: 10px; ">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/"
target="_blank"
style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
Manufacturing</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;">
Plan, track and schedule your operations.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank"
style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
Restaurant</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;">
Run your bar or restaurant methodical.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank"
style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
POS</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;">
Easy configuring and convivial selling.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
E-commerce & Website</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
Mobile friendly, awe-inspiring product pages.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Hotel Management</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
An all-inclusive hotel management application.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Education</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
A Collaborative platform for educational management.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div>
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank"> <img
src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry"
style=" border-radius: 100%;width:100%;"/> </a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan"
style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank"
style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Service Management</a>
</h3>
<h3 class="oe_slogan"
style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
Keep track of services and invoice accordingly.
</h3>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
<center>
<div class="col-md-12" style="margin: auto !important;
width: 70%;
padding: 30px;">
<h2 style="font-weight: 600;text-align: center;width: 100%;">Need Any Help?</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<h4 style="font-size:16px;"> If you have anything to share with us based on your use of this module, please
let us know. We are ready to offer our support.
</h4>
<div class="col-md-6" style="float:left; padding:20px;">
<h4><i class="fa fa-envelope"></i>Email us </h4>
<p>odoo@cybrosys.com / info@cybrosys.com</p>
</div>
<div class="col-md-6" style="float:left; padding:20px;">
<h4><i class="fa fa-phone"></i> Contact Us </h4>
<a href="https://www.cybrosys.com/contact/" target="_blank"> www.cybrosys.com</a>
</div>
</div>
Suggested Products
</center>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
<div class="oe_slogan" style="margin-bottom: 0px;">
<div style=" display: flex; justify-content: center; flex-wrap: wrap; ">
</div>
<br>
<img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;"
class="center-block">
<div style=" display: flex; justify-content: center; flex-wrap: wrap; "><a href="https://twitter.com/cybrosys"
target="_blank"><i
class="fa fa-2x fa-twitter"
style="color:white;background: #00a0d1;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i
class="fa fa-2x fa-linkedin"
style="color:white;background: #31a3d6;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook"
style="color:white;background: #3b5998;width:35px; height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest"
style="color:white;background: #ac0f18;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
</div>
</div>
</section>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -0,0 +1,171 @@
<odoo>
<template id="portal_my_home_agent" name="Portal My Home Agent : Varificaation entries"
inherit_id="portal.portal_my_home"
priority="21">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<li class="list-group-item">
<span class="badge" t-esc="quotation_count"/>
<a href="/my/records">Employee Verification</a>
</li>
</xpath>
</template>
<template id="portal_my_home_menu_employee" name="Portal layout : employe menu entries" inherit_id="portal.portal_breadcrumbs" priority="20">
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
<li t-if="page_name == 'employee'">
<a t-if='records' t-attf-href="/my/records?{{ keep_query() }}"><span style="padding-left:8px;">Employees</span></a>
<t t-else="">Employees</t>
</li>
<li t-if="page_name == 'employee_details'">
<a t-if='records'>
<a t-attf-href="/my/records?{{ keep_query() }}"><span style="padding-left:8px;">Employees</span></a>
<span style="padding-left:8px;"></span>
<t t-esc="records.employee.name"/>
</a>
<t t-else="">Employees</t>
</li>
</xpath>
</template>
<template id="portal_my_records" name="Employee varification">
<t t-call="portal.portal_layout">
<!-- <h3>Verifications Required-->
<!-- <t t-call="portal.portal_searchbar"/>-->
<!-- </h3>-->
<t t-if="not records">
<p>There are currently no quotations for your account.</p>
</t>
<div t-if="records" class="panel panel-default">
<div class="table-responsive border rounded border-top-0 #{classes if classes else ''}">
<table class="table rounded mb-0 bg-white o_portal_my_doc_table">
<thead>
<tr class="active">
<th>Employee </th>
<th>Order Date</th>
<th>Address</th>
<th></th>
</tr>
</thead>
<t t-foreach="records" t-as="record">
<tr>
<td>
<a t-attf-href="/my/details/#{record.id}?#{keep_query()}">
<t t-esc="record.employee.name"/>
</a>
</td>
<td><span t-field="record.assigned_date"/></td>
<td><span t-field="record.address"/></td>
</tr>
</t>
</table>
</div>
<div t-if="pager" class="o_portal_pager text-center">
<t t-call="portal.pager"/>
</div>
</div>
</t>
</template>
<template id="portal_record_page" name="My Employee Details">
<t t-call="portal.portal_layout">
<!-- <h3>Employee Details-->
<!-- </h3>-->
<t t-if="not records">
<p>There are currently no orders for your account.</p>
</t>
<div t-if="records" class="panel panel-default">
<div class="table-responsive">
<table class="table rounded mb-0 bg-white o_portal_my_doc_table">
<thead>
<tr class="active">
<th>Personal Details </th>
</tr>
</thead>
<t t-foreach="records" t-as="record">
<tr>
<td><h3>Name</h3></td>
<td><h4><t t-esc="records.employee.name"/></h4></td>
</tr>
<tr>
<td>Address</td>
<td>
<t t-if="records.address">
<t t-esc="record.address.street"/><br/>
<t t-esc="record.address.street2"/><br/>
<t t-esc="record.address.city"/><br/>
<t t-esc="record.address.state_id.name"/><br/>
</t>
</td>
</tr>
<tr>
<td>Assigned Date</td>
<td><t t-esc="records.assigned_date"/></td>
</tr>
<tr>
<td>Expected completion Date</td>
<td><t t-esc="records.expected_date"/></td>
</tr>
<tr>
<td>Private details</td>
<td>
<a class="btn btn-info" target="_blank" t-attf-href="/web/content/#{record.resume_uploaded.id}?download=true">
<i class="fa fa-download btn btn-primary"></i> <h4>Download</h4>
</a>
</td>
</tr>
</t>
</table>
</div>
<div t-if="pager" class="o_portal_pager text-center">
<t t-call="portal.pager"/>
</div>
</div>
<form action="/test/path" method="post" class="s_website_form form-horizontal container-fluid mt32" enctype="multipart/form-data" id="file_upload_form">
<div class="form-group form-field o_website_form_required_custom">
<label class="col-md-3 col-sm-4 control-label" for="contact_name">Description</label>
<div class="col-md-7 col-sm-8">
<input type="text" class="form-control o_website_form_input" name="description" required=""/>
</div>
<label class="col-md-3 col-sm-4 control-label" for="contact_name">Upload file if any</label>
<div class="col-md-7 col-sm-8">
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
<input type="hidden" name="employee_token" t-att-value="records.id"/>
<input type="file" name="attachment" class="file" multiple="true"
data-show-upload="true"
data-show-caption="true"
data-show-preview="true"
lass="file"
id="records.id"/>
<!-- <button type="submit" name="redirect" class="btn btn-link btn-sm btn-block cybro-super-btn" style="margin-top:20px;">Submit</button>-->
</div>
<button type="submit" name="Upload" style="margin-top:20px;" class="fa fa-upload btn btn-secondary">
Upload
</button>
</div>
</form>
</t>
</template>
<template id="portal_record_completed" name="Employee varification completed">
<t t-call="portal.portal_layout">
<h3>Employee Details</h3>
<div class="table-responsive">
<table class="table table-hover o_portal_my_doc_table">
<thead>
<tr class="active">
<th>Your report successfully submitted</th>
</tr>
</thead>
</table>
</div>
</t>
</template>
</odoo>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="res_partner_agent_form" model="ir.ui.view">
<field name="name">res.partner.agent</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='function']" position="before">
<field name="verification_agent" string="Is Agent"/>
</xpath>
</field>
</record>
</data>
</odoo>

View File

@@ -0,0 +1,143 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="employee_disciplinary_tree" model="ir.ui.view">
<field name="name">employee.verification.tree</field>
<field name="model">employee.verification</field>
<field name="arch" type="xml">
<tree string="Employee Verification">
<field name ="verification_id"/>
<field name ="employee"/>
<field name ="agency"/>
<field name="state" />
</tree>
</field>
</record>
<record id="employee_disciplinary_form" model="ir.ui.view">
<field name="name">employee.verification.form</field>
<field name="model">employee.verification</field>
<field name="arch" type="xml">
<form string="Employee Verification">
<header>
<field name="state" widget="statusbar"/>
<button string="Assign to agency"
groups="hr.group_hr_manager"
type="object" name="assign_statusbar"
class="oe_highlight"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
</header>
<sheet>
<field name="company_id" invisible="1"/>
<div class="oe_title">
<h1>
<field name="verification_id" readonly="1"/>
</h1>
</div>
<group col="2">
<group>
<field name ="employee"/>
<field name ="address"/>
<field name ="assigned_date"/>
<field name ="expected_date"/>
</group>
<group>
<field name ="agency"/>
<field name="assigned_by"/>
<field name="resume_uploaded" widget="many2many_binary" class="oe_inline"/>
<field name ="field_check" invisible="1"/>
</group>
</group>
<notebook attrs="{'invisible': [('state', '!=', 'submit')]}" >
<page name="agent" string="Information from Agency" >
<group>
<button string="Attachment"
groups="hr.group_hr_manager"
type="object"
name="download_attachment"
class="fa fa-download"/>
</group>
<group>
<field name="description_by_agency"/>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="search_view_employee" model="ir.ui.view">
<field name="name">employee.background.search</field>
<field name="model">employee.verification</field>
<field name="arch" type="xml">
<search string="Employee Verification">
<field name="state" string="State"/>
<filter domain="[('state','=','draft')]" string="Draft" name="draft"/>
<filter domain="[('state','=','assign')]" string="Assigned" name="Assigned"/>
<filter domain="[('state','=','submit')]" string="Completed" name="Completed"/>
<separator/>
<group expand="0" string="Group By">
<filter name="status" string="Status" domain="[]" context="{'group_by':'state'}"/>
</group>
</search>
</field>
</record>
<!--Sequence id for employee verification-->
<record id="seq_ver_employee" model="ir.sequence">
<field name="name">omega_sequencer</field>
<field name="code">res.users</field>
<field name="prefix">EV</field>
<field name="padding">6</field>
</record>
<!--Actions for menu items-->
<record id="action_employee_verification" model="ir.actions.act_window">
<field name="name">Employee Verification</field>
<field name="res_model">employee.verification</field>
<field name="view_mode">tree,form</field>
<!-- <field name="domain">[['state','=','draft']]</field>-->
<field name="search_view_id" ref="search_view_employee"/>
<!-- <field name="context">{"search_default_Current":1}</field>-->
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new Employee verification.
</p>
</field>
</record>
<record id="assigned_employee_verification" model="ir.actions.act_window">
<field name="name">Assigned Verification</field>
<field name="res_model">employee.verification</field>
<field name="view_mode">tree,form</field>
<field name="domain">[['state','=','assign']]</field>
</record>
<record id="submitted_employee_verification" model="ir.actions.act_window">
<field name="name">Submitted Verification</field>
<field name="res_model">employee.verification</field>
<field name="view_mode">tree,form</field>
<field name="domain">[['state','=','submit']]</field>
</record>
<record id="approved_employee_verification" model="ir.actions.act_window">
<field name="name">Approved Verification</field>
<field name="res_model">employee.verification</field>
<field name="view_mode">tree,form</field>
<field name="domain">[['state','=','approve']]</field>
</record>
<record id="refused_employee_verification" model="ir.actions.act_window">
<field name="name">Refused Verification</field>
<field name="res_model">employee.verification</field>
<field name="view_mode">tree,form</field>
<field name="domain">[['state','=','refuse']]</field>
</record>
<!--Different menu item for employee verification-->
<menuitem id="employee_verification_menu" action="action_employee_verification" name="Verification" parent="hr.menu_hr_employee_payroll"
/>
</data>
</odoo>