Merge pull request #70 from expsa/khazraji_un

add moduls
This commit is contained in:
mohammed-alkhazrji 2025-12-26 02:55:00 +03:00 committed by GitHub
commit a2d6a8bacb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
140 changed files with 7130 additions and 3 deletions

View File

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

View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
###################################################################################
{
'name': 'Appraisal KPI',
'version': '18.0.1.0.0',
'category': 'HR-Odex',
'summary': 'Manage Appraisal KPI',
'description': """
Helps you to manage Appraisal of your company's staff.
""",
'author': 'Expert Co. Ltd.',
'company': 'Exp-co-ltd',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'http://exp-sa.com',
'depends': [
'exp_hr_appraisal', 'base','kpi_scorecard', 'hr','kpi_scorecard', 'account', 'exp_hr_payroll', 'mail', 'hr_base', 'hr_contract', 'hr_contract_custom'
],
'data': [
'security/group.xml',
'security/ir.model.access.csv',
'views/kpi_category.xml',
'views/kpi_item.xml',
'views/kpi_period.xml',
'views/kpi_skills.xml',
'views/skill_appraisal.xml',
'views/years_employee_goals.xml',
'views/employee_performance_evaluation.xml',
'views/appraisal_percentage.xml',
'views/employee_apprisal.xml',
],
'installable': True,
'auto_install': False,
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
from . import kpi_item
from . import kpi_period
from . import kpi_skill
from . import skill_apprisal
from . import years_employee_goals
from . import employee_performance_evaluation
from . import appraisal_percentage
from . import employee_apprisal

View File

@ -0,0 +1,23 @@
from odoo import fields, models, api,_
from odoo.exceptions import ValidationError
class AppraisalPercentage(models.Model):
_name = 'job.class.apprisal'
_description = 'Appraisal Percentage'
name = fields.Char(string='Name')
percentage_kpi = fields.Float(string="Percentage of indicator Appraisal%",)
percentage_skills = fields.Float(string="Percentage of Skills Appraisal%",)
job_ids = fields.Many2many(
comodel_name='hr.job',
string='Jobs')
# Constraint to ensure total percentage is 100
@api.constrains('percentage_kpi', 'percentage_skills')
def _check_percentage_total(self):
for record in self:
total_percentage = record.percentage_kpi + record.percentage_skills
if total_percentage != 1:
raise ValidationError(_("Total percentage should be 100."))
if self.job_ids:
for rec in self.job_ids:
rec.appraisal_percentages_id = self.id

View File

@ -0,0 +1,162 @@
from odoo import models, fields,_,api,exceptions
class EmployeeApprisal(models.Model):
_inherit = 'hr.group.employee.appraisal'
year_id = fields.Many2one(comodel_name='kpi.period',string='Year',required=True)
appraisal_ids = fields.One2many('hr.employee.appraisal', 'employee_appraisal2')
def gen_appraisal(self):
for item in self:
if item.employee_ids:
appraisal_lines_list = []
# Fill employee appraisal
for element in item.employee_ids:
standard_appraisal_list, manager_appraisal_list = [], []
year_goal_obj = self.env['years.employee.goals'].search([('employee_id','=',element.id),('year_id','=',self.year_id.id)])
print('year = ',year_goal_obj)
goal_ids = year_goal_obj.ids if year_goal_obj else []
appraisal_line = {
'employee_id': element.id,
'manager_id': item.manager_id.id,
'year_id': item.year_id.id,
'department_id': item.department_id.id,
'job_id': element.job_id.id,
'appraisal_date': item.date,
'goal_ids': [(6, 0, goal_ids)],
}
line_id = self.env['hr.employee.appraisal'].create(appraisal_line)
line_id.compute_apprisal()
appraisal_lines_list.append(line_id.id)
item.appraisal_ids = self.env['hr.employee.appraisal'].browse(appraisal_lines_list)
else:
raise exceptions.Warning(_('Please select at least one employee to make appraisal.'))
item.state = 'gen_appraisal'
def draft(self):
print('draft ..............')
# Delete all appraisals when re-draft
if self.appraisal_ids:
print('if appr line.............')
for line in self.appraisal_ids:
print('for..................')
if line.state == 'draft':
print('state...........')
line.unlink()
self.state = 'draft'
elif line.state == 'closed':
line.state = 'state_done'
self.state = 'start_appraisal'
elif line.state == 'state_done':
self.state = 'start_appraisal'
# Call the original draft method using super()
class EmployeeApprisal(models.Model):
_inherit = 'hr.employee.appraisal'
employee_appraisal2 = fields.Many2one('hr.group.employee.appraisal') # Inverse field
employee_id = fields.Many2one('hr.employee', string='Employee',tracking=True,required=True)
manager_id = fields.Many2one('hr.employee', string='Manager',readonly=False,tracking=True,required=True,default=lambda item: item.get_user_id())
year_id = fields.Many2one(comodel_name='kpi.period',string='Year',required=True)
period_goals_id = fields.Many2one('kpi.period.notes',force_save=1,string='Period',tracking=True,)
department_id = fields.Many2one('hr.department',required=True,readonly=False,store=True,compute='compute_depart_job', tracking=True,string='Department')
job_id = fields.Many2one('hr.job',force_save=1,readonly=True,store=True, string='Job Title',related='employee_id.job_id',tracking=True,)
goals_mark = fields.Float(store=True,string='Goals Apprisal Mark',readonly=True,tracking=True)
skill_mark = fields.Float(store=True,string='Skills Apprisal Mark',readonly=True,tracking=True)
total_score = fields.Float(string='Total Mark',store=True,readonly=True,compute='compute_total_score',tracking=True)
apprisal_result = fields.Many2one('appraisal.result',string='Apprisal Result',store=True,tracking=True)
notes= fields.Text(string='Notes',required=False)
goal_ids = fields.One2many('years.employee.goals', 'employee_apprisal_id', string='Goals')
skill_ids = fields.One2many('skill.item.employee.table', 'employee_apprisal_id', string='Skills')
@api.constrains('employee_id', 'year_id')
def check_unique_employee_year_period_goals(self):
for record in self:
if self.search_count([
('employee_id', '=', record.employee_id.id),
('year_id', '=', record.year_id.id),
('id', '!=', record.id),
]) > 0:
raise exceptions.ValidationError(_("Employee Apprisal must be unique per Employee, Year, and Period!"))
@api.depends('skill_mark','goals_mark',)
def compute_total_score(self):
appraisal_result_list = []
for rec in self:
if rec.skill_mark and rec.goals_mark and rec.job_id.appraisal_percentages_id.percentage_kpi>0.0 and rec.job_id.appraisal_percentages_id.percentage_skills>0.0:
skill_mark_precentage = rec.skill_mark*rec.job_id.appraisal_percentages_id.percentage_skills
goal_mark_precentage = rec.goals_mark*rec.job_id.appraisal_percentages_id.percentage_kpi
rec.total_score = (skill_mark_precentage+goal_mark_precentage)
appraisal_result = self.env['appraisal.result'].search([
('result_from', '<', rec.total_score),
('result_to', '>=', rec.total_score)])
if rec.total_score and len(appraisal_result) > 1:
for line in appraisal_result:
appraisal_result_list.append(line.name)
raise exceptions.Warning(
_('Please check appraisal result configuration , there is more than result for '
'percentage %s are %s ') % (
round(rec.total_score, 2), appraisal_result_list))
else:
rec.appraisal_result = appraisal_result.id
def get_user_id(self):
employee_id = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
if employee_id:
return employee_id.id
else:
return False
@api.depends('employee_id')
def compute_depart_job(self):
for rec in self:
if rec.employee_id:
rec.department_id = rec.employee_id.department_id.id
def compute_apprisal(self):
year_goal_obj = self.env['years.employee.goals'].search([('employee_id','=',self.employee_id.id),('year_id','=',self.year_id.id)])
if year_goal_obj:
print('if goal...........')
self.goal_ids = year_goal_obj.ids
#
sum2 = 0
for rec in self.goal_ids:
sum2 = sum2+ ((rec.weight*int(rec.choiec))/100)
self.goals_mark = sum2
#
item_lines=[(5,0,0)]
skill_apprisal = self.env['skill.appraisal'].search([('employee_id','=',self.employee_id.id),('year_id','=',self.year_id.id),('job_id','=',self.job_id.id)])
dic_item = {}
print('s a = ',skill_apprisal)
for obj in skill_apprisal:
for rec in obj.items_ids:
if rec.mark and rec.item_id:
if rec.item_id.name in dic_item:
dic_item[rec.item_id.name].append(rec.mark)
else:
dic_item.update({rec.item_id.name:[rec.mark]})
print('dic_item = ',dic_item)
averages = {}
for key, values in dic_item.items():
# Convert values to integers and calculate sum
total = sum(int(value) for value in values)
# Calculate average
avg = total / len(values)
# Store the average in the dictionary
averages[key] = avg
if self.job_id:
for line in self.job_id.item_job_ids:
line_item = {'item_id':line.item_id.id,'name':line.name,'level':line.level,}
if line.item_id.name in averages:
line_item.update({'mark_avg':averages[line.item_id.name]})
item_lines.append((0,0,line_item))
self.skill_ids = item_lines
# Calculate the average of averages
if len(averages)!=0:
average_of_averages = sum(averages.values()) / len(averages)
self.skill_mark = average_of_averages

View File

@ -0,0 +1,149 @@
from odoo import fields, models, exceptions, api, _
from odoo.exceptions import UserError, ValidationError
from lxml import etree
import json
class EmployeePerformanceEvaluation(models.Model):
_name = 'employee.performance.evaluation'
_rec_name = 'employee_id'
_inherit = ['mail.thread']
_description = "Employee performance evaluation"
recommendations = fields.Text(string='Recommendations', tracking=True, required=False)
total = fields.Float(string='Total Mark', readonly=True, store=True, tracking=True, )
mark_apprisal = fields.Float(string='Mark Apprisal', readonly=False, store=True, tracking=True,
compute='total_mark')
date_apprisal = fields.Date(default=lambda self: fields.Date.today(), string='Apprisal Date', tracking=True, )
employee_id = fields.Many2one('hr.employee', string='Employee', tracking=True, required=True)
manager_id = fields.Many2one('hr.employee', string='Employee m', readonly=False, tracking=True, required=False,
default=lambda item: item.get_user_id())
year_id = fields.Many2one(comodel_name='kpi.period', string='Year')
period_goals_id = fields.Many2one('kpi.period.notes', force_save=1, string='Period', tracking=True, )
department_id = fields.Many2one('hr.department', readonly=False, store=True, compute='compute_depart_job',
tracking=True, string='Department')
job_id = fields.Many2one('hr.job', force_save=1, readonly=True, store=True, string='Job Title',
related='employee_id.job_id', tracking=True, )
state = fields.Selection([
('draft', 'Draft'), ('dir_manager', 'Wait Employee Accept'),
('wait_dir_manager', 'Wait Manager Accept'),
('wait_hr_manager', 'Wait HR Manager Accept'),
('approve', 'Accept'),
('refuse', 'Refused')
], string='State', tracking=True, default='draft')
emp_goal_ids = fields.One2many(comodel_name='period.goals', inverse_name='employee_eval_id',
string='Employee Goals', copy=True)
@api.constrains('employee_id', 'year_id', 'period_goals_id')
def check_unique_employee_year_period_goals(self):
for record in self:
if self.search_count([
('employee_id', '=', record.employee_id.id),
('year_id', '=', record.year_id.id),
('period_goals_id', '=', record.period_goals_id.id),
('id', '!=', record.id),
]) > 0:
raise exceptions.ValidationError(
_("Employee Goals Apprisal must be unique per Employee, Year, and Period!"))
def get_user_id(self):
employee_id = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
if employee_id:
return employee_id.id
else:
return False
@api.depends('employee_id')
def compute_depart_job(self):
for rec in self:
if rec.employee_id:
rec.department_id = rec.employee_id.department_id.id
@api.model
def fields_view_get(self, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
res = super(EmployeePerformanceEvaluation, self).fields_view_get(view_id=view_id, view_type=view_type,
toolbar=toolbar,
submenu=submenu)
doc = etree.XML(res['arch'])
emp_group = self.env.ref('exp_hr_appraisal.group_appraisal_employee').id
user_group = self.env.ref('exp_hr_appraisal.group_appraisal_user').id
manager_group = self.env.ref('exp_hr_appraisal.group_appraisal_manager').id
current_user_gids = self.env.user.groups_id.mapped('id')
if ((emp_group in current_user_gids) and (user_group not in current_user_gids) and (
manager_group not in current_user_gids)):
if view_type == 'tree' or view_type == 'form':
print('if node1.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('if node.....')
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
for node in doc.xpath("//form"):
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
res['arch'] = etree.tostring(doc)
elif ((user_group in current_user_gids or manager_group in current_user_gids)):
if view_type == 'tree' or view_type == 'form':
print('if node2.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
elif (
user_group in current_user_gids and manager_group in current_user_gids and emp_group in current_user_gids):
if view_type == 'tree' or view_type == 'form':
print('if node3.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
return res
def send(self):
self.state = 'wait_dir_manager'
def reset_draft(self):
self.state = 'draft'
def action_approval(self):
if self.state == 'dir_manager':
self.state = 'wait_dir_manager'
elif self.state == 'wait_dir_manager':
self.state = 'wait_hr_manager'
else:
self.state = 'approve'
def action_refuse(self):
self.state = 'refuse'
def onchange_emp_goal_ids(self):
goals_lines = [(5, 0, 0)]
sum = 0
period_goal_obj = self.env['period.goals'].search(
[('period_goals_id', '=', self.period_goals_id.id), ('employee_id', '=', self.employee_id.id),
('year_id', '=', self.year_id.id)])
self.emp_goal_ids = period_goal_obj.ids
for rec in self.emp_goal_ids:
sum = sum + ((rec.weight * rec.mark_evaluation) / 100)
self.mark_apprisal = sum
def unlink(self):
for rec in self:
if rec.state != 'draft':
raise ValidationError(_("You can't delete a Goal apprisal not in Draft State , archive it instead."))
return super().unlink()

View File

@ -0,0 +1,150 @@
from odoo import fields, models, api,_
from lxml import etree
import json
from odoo.exceptions import MissingError, UserError, ValidationError, AccessError
class KPICategory(models.Model):
_inherit = 'kpi.category'
@api.model
def fields_view_get(self, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
res = super(KPICategory, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar,
submenu=submenu)
doc = etree.XML(res['arch'])
emp_group = self.env.ref('exp_hr_appraisal.group_appraisal_employee').id
user_group = self.env.ref('exp_hr_appraisal.group_appraisal_user').id
manager_group = self.env.ref('exp_hr_appraisal.group_appraisal_manager').id
current_user_gids = self.env.user.groups_id.mapped('id')
if ((emp_group in current_user_gids) and (user_group not in current_user_gids )and(manager_group not in current_user_gids)):
if view_type=='tree' or view_type=='form':
print('if node1.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('if node.....')
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
for node in doc.xpath("//form"):
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
res['arch'] = etree.tostring(doc)
elif ((user_group in current_user_gids or manager_group in current_user_gids)):
if view_type=='tree' or view_type=='form':
print('if node2.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
elif (user_group in current_user_gids and manager_group in current_user_gids and emp_group in current_user_gids):
if view_type=='tree' or view_type=='form':
print('if node3.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
return res
class KPIitem(models.Model):
_inherit = 'kpi.item'
department_item_id = fields.Many2one(comodel_name='hr.department',string='Department')
responsible_item_id = fields.Many2one(comodel_name='hr.employee',string='Responsible')
mark_ids = fields.One2many(comodel_name='mark.mark',inverse_name='kip_id')
method_of_calculate = fields.Selection(
string='Method Of Calculate',
selection=[('accumulative', 'Accumulative'),
('avrerage', 'Average'),('undefined', 'Undefined'),],
required=False,default='accumulative')
@api.model
def fields_view_get(self, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
res = super(KPIitem, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar,
submenu=submenu)
doc = etree.XML(res['arch'])
emp_group = self.env.ref('exp_hr_appraisal.group_appraisal_employee').id
user_group = self.env.ref('exp_hr_appraisal.group_appraisal_user').id
manager_group = self.env.ref('exp_hr_appraisal.group_appraisal_manager').id
current_user_gids = self.env.user.groups_id.mapped('id')
if ((emp_group in current_user_gids) and (user_group not in current_user_gids )and(manager_group not in current_user_gids)):
if view_type=='tree' or view_type=='form':
print('if node1.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('if node.....')
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
for node in doc.xpath("//form"):
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
res['arch'] = etree.tostring(doc)
elif ((user_group in current_user_gids or manager_group in current_user_gids)):
if view_type=='tree' or view_type=='form':
print('if node2.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
elif (user_group in current_user_gids and manager_group in current_user_gids and emp_group in current_user_gids):
if view_type=='tree' or view_type=='form':
print('if node3.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
return res
@api.onchange('department_item_id')
def onchange_responsible(self):
domain = []
if self.department_item_id:
# Define your dynamic domain based on field1's value
domain = [('department_id', '=', self.department_item_id.id)]
return {'domain': {'responsible_item_id': domain}}
class Marks(models.Model):
_name = 'mark.mark'
choiec = fields.Selection(string='Choiec',selection=[('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'),('5','5'),])
target = fields.Float(string='From(Done)',)
to = fields.Float(string='To(Target)',)
kip_id = fields.Many2one(comodel_name='kpi.item',string='Kip_id')
@api.constrains('target', 'to', 'kip_id')
def _check_target_to_values(self):
for record in self:
if record.to <= record.target:
raise ValidationError(_('The To value must be greater than the From value.'))
# Get previous marks for the same KPI sorted by target
# previous_marks = self.env['mark.mark'].search([('kip_id', '=', record.kip_id.id), ('id', '!=', record.id)], order='target')
# for prev_mark in previous_marks:
# if record.target <= prev_mark.to:
# raise ValidationError(_('The From value must be greater than the previous To value.'))

View File

@ -0,0 +1,62 @@
from odoo import fields, models, api,_
from odoo.exceptions import ValidationError
from odoo import models, api, exceptions
from datetime import timedelta
class KPIPeriod(models.Model):
_inherit = 'kpi.period'
kpi_periods_ids = fields.One2many(
comodel_name='kpi.period.notes',
inverse_name='kpi_period_id',
ondelete='cascade') # Add this line to enable cascade deletion
kpi_goals_periods_ids = fields.One2many(
comodel_name='kpi.period.notes',
inverse_name='kpi_goal_period_id',
ondelete='cascade' ) # Add this line to enable cascade deletion
class KIPSkills (models.Model):
_name = 'kpi.period.notes'
name = fields.Char(string='Name',)
sequence = fields.Char(string='Sequence',)
date_start_k = fields.Date(string='Star Date',)
date_end_k = fields.Date(string='End Date',)
kpi_period_id = fields.Many2one(comodel_name='kpi.period',ondelete='cascade')
kpi_goal_period_id = fields.Many2one(comodel_name='kpi.period',ondelete='cascade')
def create_apprisal_goals_employee(self):
employee_objs = self.env['hr.employee'].search([('state','=','open')])
employee_id = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
for item in self:
# Fill employee appraisal
for element in employee_objs:
appraisal_line = {
'employee_id': element.id,
'year_id': item.kpi_goal_period_id.id,
'department_id': element.department_id.id,
'job_id': element.job_id.id,
'manager_id': employee_id.id,
'date_apprisal': fields.Date.today(),
'period_goals_id': item.id,
}
line_id = self.env['employee.performance.evaluation'].create(appraisal_line)
line_id.onchange_emp_goal_ids()
@api.constrains('date_start_k','kpi_goal_period_id','date_end_k')
def _check_period_overlap(self):
for record in self:
if record.kpi_goal_period_id:
periods = record.kpi_goal_period_id.kpi_goals_periods_ids.sorted(key=lambda r: r.date_start_k)
for i in range(1, len(periods)):
if periods[i-1].date_end_k >= periods[i].date_start_k:
raise ValidationError(_("Overlap detected between periods!"))
@api.constrains('date_start_k','kpi_period_id','date_end_k')
def _check_period_overlap2(self):
for record in self:
if record.kpi_period_id:
periods = record.kpi_period_id.kpi_periods_ids.sorted(key=lambda r: r.date_start_k)
for i in range(1, len(periods)):
if periods[i-1].date_end_k >= periods[i].date_start_k:
raise ValidationError(_("Overlap detected between periods!"))

View File

@ -0,0 +1,61 @@
from odoo import fields, models, api
class Skill(models.Model):
_name = 'skill.skill'
_inherit = ['mail.thread']
name = fields.Char(string='Name', required=True,tracking=True,)
description = fields.Text(string='Description',tracking=True,)
items_ids = fields.One2many('skill.item', 'skill_id', string='Items',tracking=True,)
class SkillItems(models.Model):
_name = 'skill.item'
skill_id = fields.Many2one('skill.skill', string='Skill',ondelete='cascade')
skill_appraisal_id = fields.Many2one(comodel_name='skill.appraisal')
name = fields.Char(string='Description')
level = fields.Selection([('beginner', '1'),('intermediate', '2'),('advanced', '3')],string='Level', default='beginner')
mark = fields.Selection([('1', '1'),('2', '2'),('3', '3'),('4', '4'),('5', '5')],string='Mark',Ccopy=False)
mark_avg = fields.Float(string='Mark',Ccopy=False)
item_id = fields.Many2one(comodel_name='item.item',string='Item')
display_type = fields.Selection([
('line_section', "Section"),
('line_note', "Note")],default=False, help="Technical field for UX purpose.")
employee_apprisal_id = fields.Many2one(
comodel_name='hr.employee.appraisal')
sequence = fields.Integer(string='Sequence', default=10)
class SkillItems(models.Model):
_name = 'skill.item.table'
skill_id = fields.Many2one('skill.skill', string='Skill')
skill_appraisal_id = fields.Many2one(comodel_name='skill.appraisal',ondelete='cascade')
name = fields.Char(string='Description')
level = fields.Selection([('beginner', '1'),('intermediate', '2'),('advanced', '3')],string='Level', default='beginner')
mark = fields.Selection([('1', '1'),('2', '2'),('3', '3'),('4', '4'),('5', '5')],string='Mark',Ccopy=False)
mark_avg = fields.Float(string='Mark',Ccopy=False)
item_id = fields.Many2one(comodel_name='item.item',string='Item')
employee_apprisal_id = fields.Many2one(
comodel_name='hr.employee.appraisal')
class SkillItems(models.Model):
_name = 'skill.item.employee.table'
skill_id = fields.Many2one('skill.skill', string='Skill')
skill_appraisal_id = fields.Many2one(comodel_name='skill.appraisal',ondelete='cascade')
name = fields.Char(string='Description')
level = fields.Selection([('beginner', '1'),('intermediate', '2'),('advanced', '3')],string='Level', default='beginner')
mark = fields.Selection([('1', '1'),('2', '2'),('3', '3'),('4', '4'),('5', '5')],string='Mark',Ccopy=False)
mark_avg = fields.Float(string='Mark',Ccopy=False)
item_id = fields.Many2one(comodel_name='item.item',string='Item')
employee_apprisal_id = fields.Many2one(
comodel_name='hr.employee.appraisal')
class SkillItem(models.Model):
_name = 'item.item'
name = fields.Char(string='Name')
class SkillJob(models.Model):
_inherit = 'hr.job'
item_job_ids = fields.Many2many('skill.item', 'merge_item_skill1_rel', 'merge1_id', 'item1_id', string='Skills')
# appraisal_percentage_id = fields.Many2one(comodel_name='job.class.apprisal',string='Appraisal Percentage')
appraisal_percentages_id = fields.Many2one(comodel_name='job.class.apprisal',string='Appraisal Percentage')

View File

@ -0,0 +1,141 @@
from odoo import fields, models,exceptions, api,_
from odoo.exceptions import UserError,ValidationError
from lxml import etree
import json
class SkillAppraisal(models.Model):
_name = 'skill.appraisal'
_inherit = ['mail.thread']
_rec_name = 'employee_id'
_description = 'Skill Appraisal'
name= fields.Char(string='Name',tracking=True,)
recommendations= fields.Text(string='Recommendations',tracking=True,required=False)
date_apprisal = fields.Date(default=lambda self: fields.Date.today(),string='Apprisal Date',tracking=True,)
employee_id = fields.Many2one('hr.employee', string='Employee',tracking=True,required=True)
manager_id = fields.Many2one('hr.employee', string='Manager',readonly=False,tracking=True,required=True,default=lambda item: item.get_user_id())
period = fields.Many2one('kpi.period.notes',string='Period',tracking=True,)
department_id = fields.Many2one('hr.department',readonly=True,store=True,compute='compute_depart_job', tracking=True,string='Department')
job_id = fields.Many2one('hr.job',readonly=False,store=True, string='Job Title',tracking=True,)
year_id = fields.Many2one(comodel_name='kpi.period',string='Year')
@api.constrains('employee_id', 'year_id', 'period')
def check_unique_employee_year_period_skills(self):
for record in self:
if self.search_count([
('employee_id', '=', record.employee_id.id),
('year_id', '=', record.year_id.id),
('period', '=', record.period.id),
('id', '!=', record.id),
]) > 0:
raise exceptions.ValidationError(_("Employee Skill Apprisal must be unique per Employee, Year, and Period!"))
state = fields.Selection([
('draft', 'Draft'),('dir_manager', 'Wait Employee Accept'),
('wait_dir_manager', 'Wait Manager Accept'),
('wait_hr_manager', 'Wait HR Manager Accept'),
('approve', 'Accept'),
('refuse', 'Refused')
], string='State',tracking=True,default='draft')
avarage = fields.Float(string='Result',readonly=True,store=True,tracking=True,compute='calc_avg')
items_ids = fields.One2many(comodel_name='skill.item.table',inverse_name='skill_appraisal_id',string='Items',copy=True)
@api.model
def fields_view_get(self, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
res = super(SkillAppraisal, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar,
submenu=submenu)
doc = etree.XML(res['arch'])
emp_group = self.env.ref('exp_hr_appraisal.group_appraisal_employee').id
user_group = self.env.ref('exp_hr_appraisal.group_appraisal_user').id
manager_group = self.env.ref('exp_hr_appraisal.group_appraisal_manager').id
current_user_gids = self.env.user.groups_id.mapped('id')
if ((emp_group in current_user_gids) and (user_group not in current_user_gids )and(manager_group not in current_user_gids)):
if view_type=='tree' or view_type=='form':
print('if node1.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('if node.....')
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
for node in doc.xpath("//form"):
node.set('create', 'false')
node.set('delete', 'false')
node.set('edit', 'false')
res['arch'] = etree.tostring(doc)
elif ((user_group in current_user_gids or manager_group in current_user_gids)):
if view_type=='tree' or view_type=='form':
print('if node2.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
elif (user_group in current_user_gids and manager_group in current_user_gids and emp_group in current_user_gids):
if view_type=='tree' or view_type=='form':
print('if node3.....')
# if view_type == 'tree':
for node in doc.xpath("//tree"):
print('for..node')
node.set('create', 'true')
node.set('edit', 'true')
for node in doc.xpath("//form"):
node.set('create', 'true')
node.set('edit', 'true')
res['arch'] = etree.tostring(doc)
return res
def get_user_id(self):
employee_id = self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)
if employee_id:
return employee_id.id
else:
return False
@api.depends('employee_id')
def compute_depart_job(self):
for rec in self:
if rec.employee_id:
rec.department_id = rec.employee_id.department_id.id
rec.job_id = rec.employee_id.job_id.id
@api.depends('items_ids.mark')
def calc_avg(self):
sum = 0
for rec in self.items_ids:
if rec.mark and len(self.items_ids)!=0:
sum = sum+int(rec.mark)
self.avarage = sum/len(self.items_ids)
def send(self):
self.state = 'dir_manager'
def reset_draft(self):
self.state = 'draft'
def action_approval(self):
if self.state=='dir_manager':
self.state='wait_dir_manager'
elif self.state=='wait_dir_manager':
self.state='wait_hr_manager'
else:
self.state='approve'
def action_refuse(self):
self.state = 'refuse'
@api.onchange('job_id','employee_id')
def onchange_emp(self):
item_lines=[(5,0,0)]
for line in self.job_id.item_job_ids:
line_item = {'item_id':line.item_id.id,'name':line.name,'level':line.level}
item_lines.append((0,0,line_item))
self.items_ids = item_lines
def unlink(self):
for rec in self:
if rec.state != 'draft':
raise ValidationError(_("You can't delete a Skill apprisal not in Draft State , archive it instead."))
return super().unlink()

View File

@ -0,0 +1,220 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api,exceptions,_
class Period(models.Model):
_name = 'period.goals'
period_goals_id = fields.Many2one('kpi.period.notes', domain=[('kpi_period_id','=',False)], string='Period Of Goals', tracking=True)
employee_goals_id = fields.Many2one('years.employee.goals')
target = fields.Float(string='Target', store=True)
done = fields.Float(string='Done')
kpi_id = fields.Many2one(comodel_name='kpi.item', string='KPI', related='employee_goals_id.kpi_id')
employee_eval_id = fields.Many2one(comodel_name='employee.performance.evaluation', string='KPI')
weight = fields.Float(string='Weight', related='employee_goals_id.weight')
mark_evaluation = fields.Integer(string='Evaluation Mark', store=True, compute='_compute_mark_evaluation')
year_id = fields.Many2one(comodel_name='kpi.period', related='employee_goals_id.year_id')
employee_id = fields.Many2one(comodel_name='hr.employee', related='employee_goals_id.employee_id')
@api.depends('done', 'target', 'kpi_id')
def _compute_mark_evaluation(self):
sum = 0
for record in self:
if record.done!=0.0 and record.target!=0.0 and record.kpi_id:
done_percentage = (record.done / record.target) * 100
marks = self.env['mark.mark'].search([('kip_id', '=', record.kpi_id.id)])
if marks:
# Finding the closest mark where the done_percentage fits into the target-to range
closest_mark = min(
marks,
key=lambda x: abs(done_percentage - ((x.target + x.to) / 2))
)
if closest_mark.target <= done_percentage <= closest_mark.to:
record.mark_evaluation = int(closest_mark.choiec)
closest_mark = None
for mark in marks:
if mark.target <= done_percentage <= mark.to:
record.mark_evaluation = mark.choiec
break
else:
record.mark_evaluation = 0 # Or any other default value if fields are empty
sum = sum+ ((record.weight*record.mark_evaluation)/100)
record.employee_eval_id.mark_apprisal = sum
class YearEmployeeGoals(models.Model):
_name = 'years.employee.goals'
_inherit = ['mail.thread']
_description = 'years employee goals'
_rec_name = 'employee_id'
employee_id = fields.Many2one('hr.employee', string='Employee',tracking=True,required=True)
year_id = fields.Many2one(comodel_name='kpi.period',string='Year')
category_id = fields.Many2one(comodel_name='kpi.category',string='Category')
kpi_id = fields.Many2one(comodel_name='kpi.item',string='KPI',)
method_of_calculate = fields.Selection(related='kpi_id.method_of_calculate')
responsible_item_id = fields.Many2one(comodel_name='hr.employee',related='kpi_id.responsible_item_id',store=True,string='Responsible')
user_id = fields.Many2one(comodel_name='res.users',related='responsible_item_id.user_id',store=True,string='Responsible')
department_id = fields.Many2one('hr.department',readonly=True,store=True,compute='compute_depart_job', tracking=True,string='Department')
job_id = fields.Many2one('hr.job',readonly=True,store=True,compute='compute_depart_job', string='Job Title',tracking=True,)
year_target = fields.Float(string='Year Target')
weight = fields.Float(string='Weight')
goals_period_ids = fields.One2many(comodel_name='period.goals',inverse_name='employee_goals_id',string='Period',copy=False)
done = fields.Float(string='Done',store=True,compute='total_done')
state = fields.Selection([('draft', 'Draft'),('apprisal', 'Apprisal'),('close', 'Close')], string='State',tracking=True,default='draft')
choiec = fields.Integer(string='Choiec',store=True,compute='compute_choice')
employee_apprisal_id = fields.Many2one(comodel_name='hr.employee.appraisal')
first_period_traget = fields.Float(compute='_compute_first_period_traget', string='First Period Traget',
inverse='_inverse_first_period_traget')
second_period_traget = fields.Float(compute='_compute_second_period_traget', string='Second Period Traget',
inverse='_inverse_second_period_traget')
third_period_traget = fields.Float(compute='_compute_third_period_traget', string='Third Period Traget',
inverse='_inverse_third_period_traget')
fourth_period_traget = fields.Float(compute='_compute_fourth_period_traget', string='Fourth Period Traget',
inverse='_inverse_fourth_period_traget')
def _compute_first_period_traget(self):
for rec in self:
rec.first_period_traget = 0.0
first_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '1')
if first_period:
rec.first_period_traget = first_period.target
def _inverse_first_period_traget(self):
for rec in self:
first_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '1')
if first_period:
first_period.sudo().target = rec.first_period_traget
else:
if rec.year_id:
first_period = rec.year_id.kpi_goals_periods_ids.filtered(lambda period: period.sequence == '1')
if first_period:
rec.goals_period_ids = [(0, 0, {'period_goals_id':first_period.id,'target':rec.first_period_traget})]
def _compute_second_period_traget(self):
for rec in self:
rec.second_period_traget = 0.0
second_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '2')
if second_period:
rec.second_period_traget = second_period.target
def _inverse_second_period_traget(self):
for rec in self:
second_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '2')
if second_period:
second_period.sudo().target = rec.second_period_traget
else:
if rec.year_id:
second_period = rec.year_id.kpi_goals_periods_ids.filtered(lambda period: period.sequence == '2')
if second_period:
rec.goals_period_ids = [(0, 0, {'period_goals_id':second_period.id,'target':rec.second_period_traget})]
def _compute_third_period_traget(self):
for rec in self:
rec.third_period_traget = 0.0
third_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '3')
if third_period:
rec.third_period_traget = third_period.target
def _inverse_third_period_traget(self):
for rec in self:
third_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '3')
if third_period:
third_period.sudo().target = rec.third_period_traget
else:
if rec.year_id:
third_period = rec.year_id.kpi_goals_periods_ids.filtered(lambda period: period.sequence == '3')
if third_period:
rec.goals_period_ids = [(0, 0, {'period_goals_id':third_period.id,'target':rec.third_period_traget})]
def _compute_fourth_period_traget(self):
for rec in self:
rec.fourth_period_traget = 0.0
fourth_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '4')
if fourth_period:
rec.fourth_period_traget = fourth_period.target
def _inverse_fourth_period_traget(self):
for rec in self:
fourth_period = rec.goals_period_ids.filtered(lambda period: period.period_goals_id.sequence == '4')
if fourth_period:
fourth_period.sudo().target = rec.fourth_period_traget
else:
if rec.year_id:
fourth_period = rec.year_id.kpi_goals_periods_ids.filtered(lambda period: period.sequence == '4')
if fourth_period:
rec.goals_period_ids = [(0, 0, {'period_goals_id':fourth_period.id,'target':rec.fourth_period_traget})]
@api.model
def search(self, args, offset=0, limit=None, order=None, count=False):
# add domain filter to only show records related to login responsible_item_id employee
if self.env.user.has_group("exp_hr_appraisal_kpi.group_appraisal_responsabil") and not self.env.user.has_group("exp_hr_appraisal.group_appraisal_manager") and not self.env.user.has_group("exp_hr_appraisal.group_appraisal_user") :
args += [('user_id','=',self.env.user.id)]
return super (YearEmployeeGoals,self).search(args,offset,limit,order,count)
@api.depends('goals_period_ids.done','goals_period_ids.target','method_of_calculate')
def total_done(self):
for rec in self:
if rec.method_of_calculate=='accumulative':
sum=0
for record in rec.goals_period_ids:
sum = sum+record.done
rec.done = sum
elif rec.method_of_calculate=='avrerage':
sum=0
for record in rec.goals_period_ids:
sum = (sum+record.done)
rec.done = sum/len(rec.goals_period_ids)
else:
rec.done=0.0
@api.depends('goals_period_ids.done','done','goals_period_ids.target','method_of_calculate')
def compute_choice(self):
for rec in self:
choice = 0
if rec.done!=0.0 and rec.year_target!=0.0 and rec.kpi_id:
done_percentage = (rec.done / rec.year_target) * 100
marks = self.env['mark.mark'].search([('kip_id', '=', rec.kpi_id.id),('target','<=',done_percentage),('to','>=',done_percentage)],limit=1)
if marks:
choice = marks.choiec
rec.choiec = int(choice)
def apprisal(self):
self.state='apprisal'
def action_close(self):
self.state='close'
def action_set_to_dratt(self):
self.state='draft'
@api.constrains('employee_id', 'year_id', 'kpi_id')
def check_unique_employee_year_period_goals(self):
for record in self:
if self.search_count([
('employee_id', '=', record.employee_id.id),
('year_id', '=', record.year_id.id),
('kpi_id', '=', record.kpi_id.id),
('id', '!=', record.id),
]) > 0:
raise exceptions.ValidationError(_("Employee Goals must be unique per Employee, Year, and kpi!"))
@api.depends('employee_id')
def compute_depart_job(self):
for rec in self:
if rec.employee_id:
rec.department_id = rec.employee_id.department_id.id
rec.job_id = rec.employee_id.job_id.id
@api.onchange('year_id')
def onchange_emp(self):
goals_lines=[(5,0,0)]
if self.year_id:
for line in self.year_id.kpi_goals_periods_ids:
line_item = {'period_goals_id':line.id}
goals_lines.append((0,0,line_item))
self.goals_period_ids = goals_lines

View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="apprisal_kpi_group" model="res.groups">
<field name="name">Menu apprisal hide/show</field>
</record>
<record id="group_appraisal_responsabil" model="res.groups">
<field name="name">Goals Responsible</field>
<field name="category_id" ref="exp_hr_appraisal.module_category_hr_appraisal"/>
<field name="implied_ids" eval="[(4, ref('base.group_user')),(4, ref('exp_hr_appraisal.group_appraisal_employee'))]"/>
</record>
<record id="extended_kpi_category_rule" model="ir.rule">
<field name="name">Extended KPI Category Rule</field>
<field name="model_id" ref="kpi_scorecard.model_kpi_category"/>
<field name="domain_force">[
'|',
('company_id','=', False),
('company_id', 'in', company_ids),
]
</field>
<field name="groups"
eval="[(4, ref('base.group_user')), (4, ref('exp_hr_appraisal.group_appraisal_employee')),(4, ref('exp_hr_appraisal.group_appraisal_manager')),(4, ref('exp_hr_appraisal.group_appraisal_user'))]"/>
</record>
<record id="extended_kpi_item_rule" model="ir.rule">
<field name="name">Extended KPI Category Rule</field>
<field name="model_id" ref="kpi_scorecard.model_kpi_item"/>
<field name="domain_force">[
'|',
('company_id','=', False),
('company_id', 'in', company_ids),
]
</field>
<field name="groups"
eval="[(4, ref('base.group_user')), (4, ref('exp_hr_appraisal.group_appraisal_employee')),(4, ref('exp_hr_appraisal.group_appraisal_manager')),(4, ref('exp_hr_appraisal.group_appraisal_user'))]"/>
</record>
<!--add record rule for skill apprisal,employee apprisal -->
<record id="hr_employee_appraisal_kpi_employee_rule" model="ir.rule">
<field name="name">Employee: views its Skill appraisals only</field>
<field name="model_id" ref="model_skill_appraisal"/>
<field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="hr_employee_appraisal_goal_kpi_employee_rule" model="ir.rule">
<field name="name">Employee: views its Goal appraisals only</field>
<field name="model_id" ref="model_employee_performance_evaluation"/>
<field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="hr_employee_kpi_appraisal_manager_rule" model="ir.rule">
<field name="name">Manager: views Skill appraisals of its subordinates</field>
<field name="model_id" ref="model_skill_appraisal"/>
<field name="domain_force">['|','|',('employee_id.department_id.manager_id','=',False),
('employee_id.department_id.manager_id.user_id','in', [user.id]),
('employee_id.department_id.parent_id.manager_id.user_id','in', [user.id])]
</field>
<field name="groups"
eval="[(4, ref('hr_base.group_department_manager')),(4, ref('hr_base.group_division_manager'))]"/>
</record>
<record id="hr_employee_kpi_appraisal_goals_manager_rule" model="ir.rule">
<field name="name">Manager: views Goals appraisals of its subordinates</field>
<field name="model_id" ref="model_employee_performance_evaluation"/>
<field name="domain_force">['|','|',('employee_id.department_id.manager_id','=',False),
('employee_id.department_id.manager_id.user_id','in', [user.id]),
('employee_id.department_id.parent_id.manager_id.user_id','in', [user.id])]
</field>
<field name="groups"
eval="[(4, ref('hr_base.group_department_manager')),(4, ref('hr_base.group_division_manager'))]"/>
</record>
<record id="hr_employee_skill_appraisal_all_rule" model="ir.rule">
<field name="name"> Manager: views Skills appraisals of all subordinates </field>
<field name="model_id" ref="model_employee_performance_evaluation"/>
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('hr_base.group_executive_manager')),
(4, ref('hr_base.group_general_manager')),
(4, ref('exp_hr_appraisal.group_appraisal_manager')),
(4, ref('hr.group_hr_user'))]"/>
</record>
<record id="hr_employee_goal_appraisal_all_rule" model="ir.rule">
<field name="name"> Manager: views Goals appraisals of all subordinates </field>
<field name="model_id" ref="model_skill_appraisal"/>
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('hr_base.group_executive_manager')),
(4, ref('hr_base.group_general_manager')),
(4, ref('exp_hr_appraisal.group_appraisal_manager')),
(4, ref('hr.group_hr_user'))]"/>
</record>
<!--#################################################################################################################################################################-->
<!-- end -->
</data>
</odoo>

View File

@ -0,0 +1,71 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_mark2,access_marks2,model_mark_mark,base.group_user,1,1,1,1
access_mark3,access_marks3,model_mark_mark,exp_hr_appraisal.group_appraisal_employee,1,1,1,1
access_mark4,access_marks4,model_mark_mark,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_mark5,access_marks5,model_mark_mark,exp_hr_appraisal.group_appraisal_user,1,1,1,1
access_kpi_p7,access_kpi_ps8,model_kpi_period_notes,base.group_user,1,1,1,1
access_kpi_p7,access_kpi_ps8,model_kpi_period_notes,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_p7,access_kpi_ps8,model_kpi_period_notes,exp_hr_appraisal.group_appraisal_user,1,1,1,1
access_kpi_p7,access_kpi_ps8,model_kpi_period_notes,exp_hr_appraisal.group_appraisal_employee,1,1,1,1
access_kpi_p535,access_kpi_ps185,model_skill_skill,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_p535,access_kpi_ps185,model_skill_skill,exp_hr_appraisal.group_appraisal_user,1,1,1,1
access_kpi_p54435,access_kpi_ps18555,model_skill_item,base.group_user,1,1,1,1
access_kpi_p544355,access_kpi_ps189555,model_skill_item_table,base.group_user,1,1,1,1
access_kpi_p544385,access_kpi_ps179555,model_skill_item_employee_table,base.group_user,1,1,1,1
access_kpi_p53577,access_kpi_ps17785,model_item_item,base.group_user,1,1,1,1
access_kpi_p53577,access_kpi_ps17785,model_item_item,exp_hr_appraisal.group_appraisal_user,1,1,1,1
access_kpi_p53577,access_kpi_ps17785,model_item_item,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_p53577,access_kpi_ps17785,model_item_item,exp_hr_appraisal.group_appraisal_employee,1,1,1,1
access_kpi_p5357b7p,access_kpbi_ps17785p,model_skill_appraisal,base.group_user,1,1,1,1
access_kpi_p5357b7,access_kpbi_ps17785,model_skill_appraisal,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_p5357b7,access_kpbi_ps17785,model_skill_appraisal,exp_hr_appraisal.group_appraisal_user,1,1,1,1
access_kpi_p5357b7,access_kpbi_ps17785,model_skill_appraisal,exp_hr_appraisal.group_appraisal_employee,1,0,0,1
access_kpi_p5357b7d,access_kpbi_ps1778d5,model_skill_appraisal,hr_base.group_division_manager,1,1,1,1
access_kpi_p535d7b7,access_kpbi_ps17d785,model_skill_appraisal,hr_base.group_department_manager,1,1,1,1
access_kpi_p5357bd7,access_kpbi_ps1778d5,model_skill_appraisal,hr.group_hr_user,1,1,1,0
access_kpi_emp_performansel1,access_kpbi_emp_perfomance_evalution39,model_employee_performance_evaluation,base.group_user,1,1,1,0
access_kpi_emp_performanse1,access_kpbi_emp_perfomance_evalution3,model_employee_performance_evaluation,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_emp_performanse1,access_kpbi_emp_perfomance_evalution3,model_employee_performance_evaluation,exp_hr_appraisal.group_appraisal_user,1,1,1,1
access_kpi_emp_performanse1,access_kpbi_emp_perfomance_evalution3,model_employee_performance_evaluation,exp_hr_appraisal.group_appraisal_employee,1,0,0,1
access_kpi_emp_performanse11,access_kpbi_emp_perfomance_evalution33,model_employee_performance_evaluation,hr_base.group_division_manager,1,1,1,1
access_kpi_emp_performanse12,access_kpbi_emp_perfomance_evalutionr3,model_employee_performance_evaluation,hr_base.group_department_manager,1,1,1,1
access_kpi_emp_performanse13,access_kpbi_emp_perfomance_evalution53,model_employee_performance_evaluation,hr.group_hr_user,1,1,1,0
access_kpi_emp_goals_res,access_kpbi_emp_goals1_res,model_years_employee_goals,exp_hr_appraisal_kpi.group_appraisal_responsabil,1,1,1,0
access_kpi_emp_goals11,access_kpbi_emp_goals1,model_years_employee_goals,base.group_user,1,1,1,0
access_kpi_emp_goals1,access_kpbi_emp_goals11,model_years_employee_goals,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_emp_goals5,access_kpbi_emp_goals151,model_years_employee_goals,exp_hr_appraisal.group_appraisal_user,1,1,1,0
access_kpi_emp_goals,access_kpbi_emp_goals1,model_years_employee_goals,hr_base.group_department_manager,1,1,0,0
access_kpi_emp_goals_period,access_kpbi_emp_period1,model_period_goals,base.group_user,1,1,1,1
access_kpi_perecentage,access_kpbi_perecentage1,model_job_class_apprisal,base.group_user,1,1,1,1
access_kpi_category,access_kpi_category,kpi_scorecard.model_kpi_category,base.group_user,1,1,1,1
access_kpi_category,access_kpbi_category1,kpi_scorecard.model_kpi_category,kpi_scorecard.group_kpi_admin,1,1,1,1
access_kpi_category,access_kpbi_category1,kpi_scorecard.model_kpi_category,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_category1,access_kpbi_category2,kpi_scorecard.model_kpi_category,exp_hr_appraisal.group_appraisal_user,1,1,1,0
access_kpi_category21,access_kpbi_category25,kpi_scorecard.model_kpi_category,exp_hr_appraisal.group_appraisal_employee,1,0,0,0
access_kpi_period,access_kpbi_period1,kpi_scorecard.model_kpi_period,base.group_user,1,0,0,0
access_kpi_period,access_kpbi_period1,kpi_scorecard.model_kpi_period,kpi_scorecard.group_kpi_admin,1,1,1,1
access_kpi_period,access_kpbi_period1,kpi_scorecard.model_kpi_period,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_category1,access_kpbi_period2,kpi_scorecard.model_kpi_period,exp_hr_appraisal.group_appraisal_user,1,1,1,0
access_kpi_category21,access_kpbi_period25,kpi_scorecard.model_kpi_period,exp_hr_appraisal.group_appraisal_employee,1,0,0,0
access_kpi_item,access_kpbi_item1,kpi_scorecard.model_kpi_item,base.group_user,1,0,0,0
access_kpi_item,access_kpbi_item1,kpi_scorecard.model_kpi_item,kpi_scorecard.group_kpi_admin,1,1,1,1
access_kpi_item,access_kpbi_item1,kpi_scorecard.model_kpi_item,exp_hr_appraisal.group_appraisal_manager,1,1,1,1
access_kpi_item1,access_item2,kpi_scorecard.model_kpi_item,exp_hr_appraisal.group_appraisal_user,1,1,1,0
access_kpi_item21,access_kpbi_item25,kpi_scorecard.model_kpi_item,exp_hr_appraisal.group_appraisal_employee,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_mark2 access_marks2 model_mark_mark base.group_user 1 1 1 1
3 access_mark3 access_marks3 model_mark_mark exp_hr_appraisal.group_appraisal_employee 1 1 1 1
4 access_mark4 access_marks4 model_mark_mark exp_hr_appraisal.group_appraisal_manager 1 1 1 1
5 access_mark5 access_marks5 model_mark_mark exp_hr_appraisal.group_appraisal_user 1 1 1 1
6 access_kpi_p7 access_kpi_ps8 model_kpi_period_notes base.group_user 1 1 1 1
7 access_kpi_p7 access_kpi_ps8 model_kpi_period_notes exp_hr_appraisal.group_appraisal_manager 1 1 1 1
8 access_kpi_p7 access_kpi_ps8 model_kpi_period_notes exp_hr_appraisal.group_appraisal_user 1 1 1 1
9 access_kpi_p7 access_kpi_ps8 model_kpi_period_notes exp_hr_appraisal.group_appraisal_employee 1 1 1 1
10 access_kpi_p535 access_kpi_ps185 model_skill_skill exp_hr_appraisal.group_appraisal_manager 1 1 1 1
11 access_kpi_p535 access_kpi_ps185 model_skill_skill exp_hr_appraisal.group_appraisal_user 1 1 1 1
12 access_kpi_p54435 access_kpi_ps18555 model_skill_item base.group_user 1 1 1 1
13 access_kpi_p544355 access_kpi_ps189555 model_skill_item_table base.group_user 1 1 1 1
14 access_kpi_p544385 access_kpi_ps179555 model_skill_item_employee_table base.group_user 1 1 1 1
15 access_kpi_p53577 access_kpi_ps17785 model_item_item base.group_user 1 1 1 1
16 access_kpi_p53577 access_kpi_ps17785 model_item_item exp_hr_appraisal.group_appraisal_user 1 1 1 1
17 access_kpi_p53577 access_kpi_ps17785 model_item_item exp_hr_appraisal.group_appraisal_manager 1 1 1 1
18 access_kpi_p53577 access_kpi_ps17785 model_item_item exp_hr_appraisal.group_appraisal_employee 1 1 1 1
19 access_kpi_p5357b7p access_kpbi_ps17785p model_skill_appraisal base.group_user 1 1 1 1
20 access_kpi_p5357b7 access_kpbi_ps17785 model_skill_appraisal exp_hr_appraisal.group_appraisal_manager 1 1 1 1
21 access_kpi_p5357b7 access_kpbi_ps17785 model_skill_appraisal exp_hr_appraisal.group_appraisal_user 1 1 1 1
22 access_kpi_p5357b7 access_kpbi_ps17785 model_skill_appraisal exp_hr_appraisal.group_appraisal_employee 1 0 0 1
23 access_kpi_p5357b7d access_kpbi_ps1778d5 model_skill_appraisal hr_base.group_division_manager 1 1 1 1
24 access_kpi_p535d7b7 access_kpbi_ps17d785 model_skill_appraisal hr_base.group_department_manager 1 1 1 1
25 access_kpi_p5357bd7 access_kpbi_ps1778d5 model_skill_appraisal hr.group_hr_user 1 1 1 0
26 access_kpi_emp_performansel1 access_kpbi_emp_perfomance_evalution39 model_employee_performance_evaluation base.group_user 1 1 1 0
27 access_kpi_emp_performanse1 access_kpbi_emp_perfomance_evalution3 model_employee_performance_evaluation exp_hr_appraisal.group_appraisal_manager 1 1 1 1
28 access_kpi_emp_performanse1 access_kpbi_emp_perfomance_evalution3 model_employee_performance_evaluation exp_hr_appraisal.group_appraisal_user 1 1 1 1
29 access_kpi_emp_performanse1 access_kpbi_emp_perfomance_evalution3 model_employee_performance_evaluation exp_hr_appraisal.group_appraisal_employee 1 0 0 1
30 access_kpi_emp_performanse11 access_kpbi_emp_perfomance_evalution33 model_employee_performance_evaluation hr_base.group_division_manager 1 1 1 1
31 access_kpi_emp_performanse12 access_kpbi_emp_perfomance_evalutionr3 model_employee_performance_evaluation hr_base.group_department_manager 1 1 1 1
32 access_kpi_emp_performanse13 access_kpbi_emp_perfomance_evalution53 model_employee_performance_evaluation hr.group_hr_user 1 1 1 0
33 access_kpi_emp_goals_res access_kpbi_emp_goals1_res model_years_employee_goals exp_hr_appraisal_kpi.group_appraisal_responsabil 1 1 1 0
34 access_kpi_emp_goals11 access_kpbi_emp_goals1 model_years_employee_goals base.group_user 1 1 1 0
35 access_kpi_emp_goals1 access_kpbi_emp_goals11 model_years_employee_goals exp_hr_appraisal.group_appraisal_manager 1 1 1 1
36 access_kpi_emp_goals5 access_kpbi_emp_goals151 model_years_employee_goals exp_hr_appraisal.group_appraisal_user 1 1 1 0
37 access_kpi_emp_goals access_kpbi_emp_goals1 model_years_employee_goals hr_base.group_department_manager 1 1 0 0
38 access_kpi_emp_goals_period access_kpbi_emp_period1 model_period_goals base.group_user 1 1 1 1
39 access_kpi_perecentage access_kpbi_perecentage1 model_job_class_apprisal base.group_user 1 1 1 1
40 access_kpi_category access_kpi_category kpi_scorecard.model_kpi_category base.group_user 1 1 1 1
41 access_kpi_category access_kpbi_category1 kpi_scorecard.model_kpi_category kpi_scorecard.group_kpi_admin 1 1 1 1
42 access_kpi_category access_kpbi_category1 kpi_scorecard.model_kpi_category exp_hr_appraisal.group_appraisal_manager 1 1 1 1
43 access_kpi_category1 access_kpbi_category2 kpi_scorecard.model_kpi_category exp_hr_appraisal.group_appraisal_user 1 1 1 0
44 access_kpi_category21 access_kpbi_category25 kpi_scorecard.model_kpi_category exp_hr_appraisal.group_appraisal_employee 1 0 0 0
45 access_kpi_period access_kpbi_period1 kpi_scorecard.model_kpi_period base.group_user 1 0 0 0
46 access_kpi_period access_kpbi_period1 kpi_scorecard.model_kpi_period kpi_scorecard.group_kpi_admin 1 1 1 1
47 access_kpi_period access_kpbi_period1 kpi_scorecard.model_kpi_period exp_hr_appraisal.group_appraisal_manager 1 1 1 1
48 access_kpi_category1 access_kpbi_period2 kpi_scorecard.model_kpi_period exp_hr_appraisal.group_appraisal_user 1 1 1 0
49 access_kpi_category21 access_kpbi_period25 kpi_scorecard.model_kpi_period exp_hr_appraisal.group_appraisal_employee 1 0 0 0
50 access_kpi_item access_kpbi_item1 kpi_scorecard.model_kpi_item base.group_user 1 0 0 0
51 access_kpi_item access_kpbi_item1 kpi_scorecard.model_kpi_item kpi_scorecard.group_kpi_admin 1 1 1 1
52 access_kpi_item access_kpbi_item1 kpi_scorecard.model_kpi_item exp_hr_appraisal.group_appraisal_manager 1 1 1 1
53 access_kpi_item1 access_item2 kpi_scorecard.model_kpi_item exp_hr_appraisal.group_appraisal_user 1 1 1 0
54 access_kpi_item21 access_kpbi_item25 kpi_scorecard.model_kpi_item exp_hr_appraisal.group_appraisal_employee 1 0 0 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,22 @@
@media (min-width: 768px){
.rtl .navbar-right{
float: left !important;
}
.rtl .navbar-right .dropdown .dropdown-menu{
right: auto !important;
left: 0 !important;
}
.rtl .navbar-left{
float: right !important;
}
.rtl .navbar-left .dropdown .dropdown-menu{
left: auto !important;
right: 0 !important;
}
.navbar-nav.navbar-right:last-child{
margin-left: auto;
}
.rtl .pull-left{
float: right !important;
}
}

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="apprisal_percentag_form_view" model="ir.ui.view">
<field name="name">apprisal.apprisal_percentag.form</field>
<field name="model">job.class.apprisal</field>
<field name="arch" type="xml">
<form string="Apprisal Percentag">
<sheet>
<group>
<group>
<field name="name"/>
<field name="percentage_kpi" widget="percentage" />
<field name="percentage_skills" widget="percentage" />
<field name="job_ids"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="apprisal_percentag_tree_view" model="ir.ui.view">
<field name="name">apprisal.apprisal_percentag.tree</field>
<field name="model">job.class.apprisal</field>
<field name="arch" type="xml">
<list string="ModelTitle">
<field name="name"/>
<field name="percentage_kpi"/>
<field name="percentage_skills"/>
</list>
</field>
</record>
<!-- <record id="apprisal_percentag_search_view" model="ir.ui.view">-->
<!-- <field name="name">ProjectName.apprisal_percentag.search</field>-->
<!-- <field name="model">ProjectName.apprisal_percentag</field>-->
<!-- <field name="arch" type="xml">-->
<!-- <search string="Apprisal Percentag">-->
<!-- <group expand="1" string="Group By">-->
<!-- <filter string="Example Field" name="example_field" domain="[]"-->
<!-- context="{'group_by':'example_field'}"/>-->
<!-- </group>-->
<!-- </search>-->
<!-- </field>-->
<!-- </record>-->
<record id="apprisal_percentag_act_window1" model="ir.actions.act_window">
<field name="name">Apprisal Percentag</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">job.class.apprisal</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
There is no examples click here to add new ModelTitle.
</p>
</field>
</record>
<menuitem name="Appraisal Percentage"
id="menu_kpi_percentage"
parent="exp_hr_appraisal.appraisal_configuration"
action="apprisal_percentag_act_window1"
sequence="1" groups="exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_employee"
/>
</data>
</odoo>

View File

@ -0,0 +1,223 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="employee_apprisal_extend" model="ir.ui.view">
<field name="name">employee.apprisal.form.extend</field>
<field name="model">hr.employee.appraisal</field>
<field name="inherit_id" ref="exp_hr_appraisal.hr_appraisal_form_view"/>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='appraisal_result']" position="replace">
</xpath>
<xpath expr="//field[@name='appraisal_date']" position="after">
<field name="year_id"/>
<field name="goals_mark"/>
<field name="skill_mark"/>
<field name="total_score"/>
<field name="appraisal_result"/>
</xpath>
<xpath expr="//field[@name='great_level']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='level_achieved']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='level_achieved_percentage']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='manager_appraisal_line_id']" position="replace">
<!-- <attribute name="invisible">1</attribute>-->
</xpath>
<xpath expr="//field[@name='appraisal_plan_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='appraisal_type']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='standard_appraisal_employee_line_ids']" position="replace">
<!-- <attribute name="invisible">1</attribute>-->
</xpath>
<xpath expr="//field[@name='is_manager']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='date_from']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='date_to']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//sheet/group[2]" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//button[@name='recompute_values_level_achieved']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='employee_id']" position="after">
<field name="manager_id"/>
<field name="department_id"/>
<field name="job_id"/>
</xpath>
<xpath expr="//sheet/group[1]" position="after">
<group>
<group>
<button name="compute_apprisal" string="Compute Apprisal" type="object" class="oe_highlight"
icon="fa-cogs"/>
</group>
</group>
<notebook>
<page string="Goals">
<field name="goal_ids">
<list create="0" delete="0" editable="bottom">
<field name="kpi_id" width="12"
options='{"no_open": False,"no_create_edit": True,"no_create":True}'/>
<field name="weight" sum="Total Weight" width="12"/>
<field name="year_target" sum="Total Target" width="12"/>
<field name="done" width="12"/>
<field name="choiec" width="12"/>
</list>
</field>
</page>
<page string="Skills">
<field name="skill_ids">
<list create="0" delete="0" editable="bottom">
<field readonly="1" force_save='1' name="item_id" width="12"
options='{"no_open": True,"no_create_edit": True}'/>
<field readonly="1" force_save='1' name="name" width="12"/>
<field readonly="1" force_save='1' name="level" width="12"/>
<field force_save='1' name="mark_avg" width="12"/>
</list>
</field>
</page>
<page string="Notes">
<field widget="html" required="0" name="notes"/>
</page>
</notebook>
</xpath>
</field>
</record>
<record id="employee_apprisal_view_tree" model="ir.ui.view">
<field name="name">employee_apprisal.extend.view.tree</field>
<field name="model">hr.employee.appraisal</field>
<field name="inherit_id" ref="exp_hr_appraisal.hr_appraisal_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='appraisal_plan_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='employee_id']" position="after">
<field name="manager_id"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="year_id"/>
</xpath>
<xpath expr="//field[@name='state']" position="before">
<field name="skill_mark"/>
<field name="goals_mark"/>
<field name="total_score"/>
<field name="apprisal_result"/>
</xpath>
</field>
</record>
<record id="employee_apprisal_view_tree2" model="ir.ui.view">
<field name="name">employee_apprisal.extend.view.tree</field>
<field name="model">hr.group.employee.appraisal</field>
<field name="inherit_id" ref="exp_hr_appraisal.employee_appraisal_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='totals_great_level']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_level_achieved']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_level_achieved_percentage']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_appraisal_result']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='appraisal_plan_id']" position="replace">
<field name="year_id"/>
</xpath>
</field>
</record>
<!-- Inherit Form View to Modify it -->
<record id="group_employee_apprisal_extend" model="ir.ui.view">
<field name="name">employee.apprisal.group.extend</field>
<field name="model">hr.group.employee.appraisal</field>
<field name="inherit_id" ref="exp_hr_appraisal.employee_appraisal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='date']" position="after">
<field name="year_id"/>
</xpath>
<xpath expr="//field[@name='appraisal_plan_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='appraisal_type']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_great_level']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_level_achieved']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_level_achieved_percentage']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='totals_appraisal_result']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='state']" position="attributes">
<attribute name="statusbar_visible">
draft,gen_appraisal,finish_appraisal,hr_approval,gm_approval,done
</attribute>
</xpath>
<xpath expr="//field[@name='appraisal_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//separator[2]" position="replace">
</xpath>
<xpath expr="//separator[1]" position="replace">
</xpath>
<xpath expr="//field[@name='employee_ids']" position="replace">
<notebook>
<page string="Employees">
<field name="employee_ids" string="" readonly="state != 'draft'" >
<list>
<field name="name" string="Employee name"/>
<field name="department_id" string="Department"/>
<field name="job_id" string="Job title"/>
</list>
</field>
</page>
<page string="Apprisal">
<field name="appraisal_ids" string=""
readonly="state != 'draft'" invisible="state == 'draft'">
<list editable="bottom">
<field name="employee_id" width='12' string="Employee"/>
<field name="department_id" width='12' string=""/>
<field name="appraisal_date" width='12' string=""/>
<field name="year_id" width='12' string=""/>
<field name="skill_mark" width='12' string=""/>
<field name="goals_mark" width='12' string=""/>
<field name="total_score" width='12' string=""/>
<field name="apprisal_result" width='12' string=""/>
</list>
</field>
</page>
</notebook>
</xpath>
</field>
</record>
</data>
</odoo>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form View -->
<record id="view_emplo_evalu_form" model="ir.ui.view">
<field name="name">evalution.employee.goals.form1</field>
<field name="model">employee.performance.evaluation</field>
<field name="arch" type="xml">
<form string="Evaluation Employee Goals">
<header>
<button string="Send" groups='hr_base.group_division_manager' invisible="state != 'draft'" class="oe_highlight" type="object" name="send"/>
<button string="Accept" invisible="state != 'dir_manager'" class="oe_highlight" type="object" name="action_approval"/>
<button string="refuse" invisible="state != 'dir_manager'" class="oe_highlight" type="object" name="action_refuse"/>
<button string="Accept" groups='hr_base.group_department_manager' invisible="state != 'wait_dir_manager'" class="oe_highlight" type="object" name="action_approval"/>
<button string="refuse" groups='hr_base.group_department_manager' invisible="state != 'wait_dir_manager'" class="oe_highlight" type="object" name="action_refuse"/>
<button string="Accept" groups='hr.group_hr_user' invisible="state != 'wait_hr_manager'" class="oe_highlight" type="object" name="action_approval"/>
<button string="refuse" groups='hr.group_hr_user' invisible="state != 'wait_hr_manager'" class="oe_highlight" type="object" name="action_refuse"/>
<button string="Reset To Draft" invisible="state not in ['approve', 'refuse']" class="oe_highlight" type="object" name="reset_draft"/>
<field name="state" required="1" statusbar_visible="draft,wait_dir_manager,wait_hr_manager,approve,refuse" widget="statusbar"/>
</header>
<sheet>
<group>
<group>
<field name="employee_id" required="1"/>
<field name="manager_id" required="1"/>
<field name="department_id" required="1"/>
<field name="job_id" required="1"/>
</group>
<group>
<field name="date_apprisal"/>
<field name="year_id" required="1" options='{"no_open": True,"no_create_edit": True,"no_create":True}'/>
<field name="period_goals_id" domain="[('kpi_goal_period_id', '=', year_id),('kpi_period_id','=',False)]" invisible="not year_id" required="1" options='{"no_open": False,"no_create_edit": True,"no_create":True}'/>
<field name="mark_apprisal" decoration-bf="1" required="1"/>
<!-- <field name="total" decoration-bf="1" />-->
</group>
</group>
<notebook>
<page string="Employee Goals">
<button string="Select Goals" class="oe_highlight" type="object" name="onchange_emp_goal_ids"/>
<field name="emp_goal_ids">
<list create="0" delete="0" editable="bottom">
<field name="kpi_id" width="12" options='{"no_open": False,"no_create_edit": True,"no_create":True}'/>
<field name="weight" sum="Total Weight" width="12"/>
<field name="target" sum="Total Target" width="12"/>
<field name="done" width="12"/>
<field decoration-bf="1" name="mark_evaluation" width="12"/>
</list>
</field>
</page>
<page string="Recommendations">
<field widget="html" required="0" name="recommendations"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Tree View -->
<record id="view_evalution_goals_employee_tree1" model="ir.ui.view">
<field name="name">evalution.employee.goals.tree1</field>
<field name="model">employee.performance.evaluation</field>
<field name="arch" type="xml">
<list string="Year Employee Goals" decoration-info="state == 'draft'" decoration-danger="state == 'refuse'" decoration-success="state== 'approve'" >
<field name="employee_id"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="year_id"/>
<field name="period_goals_id"/><field name="date_apprisal"/>
<field name="state" widget="badge" decoration-info="state == 'draft'" decoration-danger="state == 'refuse'" decoration-success="state== 'approve'"/>
<field name="mark_apprisal" sum='Total' decoration-bf="1"/>
</list>
</field>
</record>
<!-- Menu Action -->
<record id="action_evalution_goal_emp" model="ir.actions.act_window">
<field name="name">Evaluation Employee Goals</field>
<field name="res_model">employee.performance.evaluation</field>
<field name="view_mode">list,form</field>
</record>
<!-- Menu Item -->
<menuitem id="menu_evalution_employee_goals_" sequence="2" groups="exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_employee" name="Employee Goals Appraisal" parent="exp_hr_appraisal.appraisal_menu_id" action="action_evalution_goal_emp"/>
</odoo>

View File

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="kpi_category_inherit" model="ir.ui.view">
<field name="name">kpi.category.form</field>
<field name="model">kpi.category</field>
<field name="inherit_id" ref="kpi_scorecard.kpi_category_view_form"/>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[1]" position="attributes">
<attribute name="groups">kpi_scorecard.group_kpi_admin</attribute>
</xpath>
</field>
</record>
<menuitem name="Goals"
id="menu_kpi_categories"
parent="exp_hr_appraisal.appraisal_configuration"
action="kpi_scorecard.kpi_category_action"
sequence="1"
groups="kpi_scorecard.group_kpi_admin,exp_hr_appraisal.group_appraisal_employee,exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_user"/>
<menuitem name="KPI"
id="menu_kpi_kpi"
parent="exp_hr_appraisal.appraisal_configuration"
action="kpi_scorecard.kpi_item_action"
sequence="1"
groups="kpi_scorecard.group_kpi_admin,exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_employee,exp_hr_appraisal.group_appraisal_user"
/>
<menuitem name="Periods"
id="menu_kpi_period"
parent="exp_hr_appraisal.appraisal_configuration"
action="kpi_scorecard.kpi_period_action"
sequence="1"
groups="kpi_scorecard.group_kpi_admin,exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_employee"
/>
<menuitem name="Goals and Skills" id="menu_kpi_goal_skill" parent="exp_hr_appraisal.appraisal_menu_id" sequence="3"/>
<!-- todo start -->
<!-- hide menu -->
<record model="ir.ui.menu" id="exp_hr_appraisal.appraisal_plan_menu">
<field name="groups_id" eval="[(6,0,[ref('exp_hr_appraisal_kpi.apprisal_kpi_group')])]"/>
</record>
<record model="ir.ui.menu" id="exp_hr_appraisal.appraisal_setting_menu">
<field name="groups_id" eval="[(6,0,[ref('exp_hr_appraisal_kpi.apprisal_kpi_group')])]"/>
</record>
<record model="ir.ui.menu" id="exp_hr_appraisal.appraisal_menu">
<field name="groups_id" eval="[(6,0,[ref('exp_hr_appraisal_kpi.apprisal_kpi_group')])]"/>
</record>
<record model="ir.ui.menu" id="exp_hr_appraisal.appraisal_degree_menu">
<field name="groups_id" eval="[(6,0,[ref('exp_hr_appraisal_kpi.apprisal_kpi_group')])]"/>
</record>
<!-- todo end -->
</odoo>

View File

@ -0,0 +1,51 @@
<odoo>
<!-- Inherit Form View to Modify it -->
<record id="kpi_item_tree_extend" model="ir.ui.view">
<field name="name">kpi.item.tree.extend</field>
<field name="model">kpi.item</field>
<field name="inherit_id" ref="kpi_scorecard.kpi_item_view_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='formula_warning']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
<record id="hpi_item_extend" model="ir.ui.view">
<field name="name">kpi.form.extend</field>
<field name="model">kpi.item</field>
<field name="inherit_id" ref="kpi_scorecard.kpi_item_view_form"/>
<field name="arch" type="xml">
<!-- add new tab -->
<xpath expr="//field[@name='formula_warning']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='formula']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//h2" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='category_id']" position="after">
<field name="department_item_id"/>
<field name="responsible_item_id"/>
<field name="method_of_calculate"/>
</xpath>
<xpath expr="//notebook" position="inside">
<page string="Marks" groups="base.group_user,exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_employee">
<field name="mark_ids">
<list editable="bottom">
<field name="choiec" width="12"/>
<field name="target" string="From(Done)" width="12"/>
<field name="to" width="12"/>
</list>
</field>
</page>
</xpath>
<xpath expr="//notebook/page[2]" position="attributes">
<attribute name="groups">kpi_scorecard.group_kpi_admin</attribute>
</xpath>
</field>
</record>
</odoo>

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="kpi_period_form_extend" model="ir.ui.view">
<field name="name">kpi.period.form.extend</field>
<field name="model">kpi.period</field>
<field name="inherit_id" ref="kpi_scorecard.kpi_period_view_form"/>
<field name="arch" type="xml">
<xpath expr="//page[1]" position="attributes">
<attribute name="groups">kpi_scorecard.group_kpi_admin</attribute>
</xpath>
<xpath expr="//page[2]" position="attributes">
<attribute name="groups">kpi_scorecard.group_kpi_admin</attribute>
</xpath>
<xpath expr="//button[@name='%(kpi_scorecard.kpi_copy_template_action)d']" position="attributes">
<attribute name="groups">kpi_scorecard.group_kpi_admin</attribute>
</xpath>
<xpath expr="//page[2]" position="after">
<page string="Goals Period">
<field name="kpi_goals_periods_ids">
<list editable="bottom">
<field name="sequence" width="4"/>
<field name="name" width="8"/>
<field name="date_start_k" width="12"/>
<field name="date_end_k" width="12"/>
<button string="Create Apprisal" width="" class="oe_highlight" type="object" name="create_apprisal_goals_employee"/>
</list>
</field>
</page>
<page string="Skills Period">
<field name="kpi_periods_ids">
<list editable="bottom">
<field name="name" width="12"/>
<field name="date_start_k" width="12"/>
<field name="date_end_k" width="12"/>
</list>
</field>
</page>
</xpath>
</field>
</record>
</odoo>

View File

@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Skill Form View -->
<record id="view_skill_form" model="ir.ui.view">
<field name="name">skill.form</field>
<field name="model">skill.skill</field>
<field name="arch" type="xml">
<form string="Skill">
<sheet>
<group>
<field name="name"/>
<field name="description"/>
</group>
<notebook>
<page string="Items">
<field widget="section_and_note_one2many" name="items_ids">
<list editable="bottom">
<field name="sequence" widget="handle"/>
<field name="display_type" invisible="1"/>
<field name="item_id"/>
<field widget="section_and_note_text" name="name"/>
<field name="level"/>
<control>
<create name="add_product_control" string="Add a Item "/>
<create name="add_section_control" string="Add a section " context="{'default_display_type': 'line_section'}"/>
<create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>
</control>
</list>
</field>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Skill Tree View -->
<record id="view_skill_tree" model="ir.ui.view">
<field name="name">skill.tree</field>
<field name="model">skill.skill</field>
<field name="arch" type="xml">
<list string="Skills">
<field name="name"/>
<field name="description"/>
</list>
</field>
</record>
<record id="skill_search_view" model="ir.ui.view">
<field name="name">kpi.skill.search</field>
<field name="model">skill.skill</field>
<field name="arch" type="xml">
<search string="Skill">
<field name="name"/>
</search>
</field>
</record>
<record id="skill_act_window" model="ir.actions.act_window">
<field name="name">Skills</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">skill.skill</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
There is no examples click here to add new Skill.
</p>
</field>
</record>
<!-- form inherit -->
<!-- Inherit Form View to Modify it -->
<record id="hr_job_from_extend" model="ir.ui.view">
<field name="name">hr.job.extend</field>
<field name="model">hr.job</field>
<field name="inherit_id" ref="hr.view_hr_job_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page string="Skills">
<field name="item_job_ids" domain="[('display_type','=',False)]"/>
</page>
</xpath>
</field>
</record>
<record id="item_tree_view_tree" model="ir.ui.view">
<field name="name">item.tree.view.tree</field>
<field name="model">skill.item</field>
<field name="arch" type="xml">
<list string="item_tree_tree">
<field name="skill_id"/>
<field name="item_id"/>
<field name="name"/>
<field name="level"/>
<field name="mark" invisible="1"/>
</list>
</field>
</record>
<!-- Inherit the menu -->
<!-- <record model="ir.ui.menu" id="hr_base_reports.appraisal_report_menu">-->
<!-- <field name="groups_id" eval="[(4, ref('exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_manager'))]"/>-->
<!-- </record>-->
<!-- end from -->
<menuitem name="Skills" id="skill_menu" sequence="1" parent="exp_hr_appraisal_kpi.menu_kpi_goal_skill" groups="exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_manager"
action="skill_act_window"/>
</odoo>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form View -->
<record id="view_skill_appraisal_form" model="ir.ui.view">
<field name="name">skill.appraisal.form</field>
<field name="model">skill.appraisal</field>
<field name="arch" type="xml">
<form string="Skill Appraisal">
<header>
<button string="Send" groups='hr_base.group_division_manager' invisible="state not in ['draft']" class="oe_highlight" type="object" name="send"/>
<button string="Accept" invisible="state not in ['dir_manager']" class="oe_highlight" type="object" name="action_approval"/>
<button string="refuse" invisible="state not in ['dir_manager']" class="oe_highlight" type="object" name="action_refuse"/>
<button string="Accept" groups='hr_base.group_department_manager' invisible="state not in ['wait_dir_manager']" class="oe_highlight" type="object" name="action_approval"/>
<button string="refuse" groups='hr_base.group_department_manager' invisible="state not in ['wait_dir_manager']" class="oe_highlight" type="object" name="action_refuse"/>
<button string="Accept" groups='hr.group_hr_user' invisible="state not in ['wait_hr_manager']" class="oe_highlight" type="object" name="action_approval"/>
<button string="refuse" groups='hr.group_hr_user' invisible="state not in ['wait_hr_manager']" class="oe_highlight" type="object" name="action_refuse"/>
<button string="Reset To Draft" invisible="state not in ['refuse','approve']" class="oe_highlight" type="object" name="reset_draft"/>
<field name="state" required='1' statusbar_visible="draft,dir_manager,wait_dir_manager,wait_hr_manager,approve,refuse" widget="statusbar"/>
</header>
<sheet>
<group>
<group>
<field name="employee_id" readonly="state not in ['draft']" required='1'/>
<field readonly="state not in ['draft']" name="department_id" required='1'/>
<field readonly="state not in ['draft']" name="job_id" required='1'/>
<field readonly="state not in ['draft']" name="manager_id" required='1'/>
</group>
<group>
<field readonly="state not in ['draft']" name="date_apprisal"/>
<field readonly="state not in ['draft']" name="year_id" required="1" options='{"no_open": True,"no_create_edit": True,"no_create":True}'/>
<field readonly="state != 'draft'" invisible=" not year_id" name="period" domain="[('kpi_period_id', '=',year_id),('kpi_goal_period_id','=',False)]" required="1" options='{"no_open": True,"no_create_edit": True,"no_create":True}'/>
<field readonly="state not in ['draft']" required='1' decoration-bf="1" name="avarage"/>
</group>
</group>
<notebook>
<page string="Items">
<field name="items_ids">
<list create="0" delete='0' editable="bottom">
<field readonly="1" force_save='1' name="item_id" width="12" options='{"no_open": True,"no_create_edit": True}'/>
<field readonly="1" force_save='1' name="name" width="12" />
<field readonly="1" force_save='1' name="level" width="12"/>
<field force_save='1' invisible="parent.state not in ['wait_dir_manager','draft']" name="mark" width="12"/>
</list>
</field>
</page>
<page string="Recommendations">
<field readonly="state not in ['draft']" widget="html" required="0" name="recommendations"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Tree View -->
<record id="view_skill_appraisal_tree" model="ir.ui.view">
<field name="name">skill.appraisal.tree</field>
<field name="model">skill.appraisal</field>
<field name="arch" type="xml">
<list string="Skill Appraisal" decoration-info="state == 'draft'" decoration-danger="state == 'refuse'" decoration-success="state== 'approve'">
<field name="employee_id"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="manager_id"/>
<field name="period"/>
<field name="date_apprisal"/>
<field name="state" widget="badge" decoration-info="state == 'draft'" decoration-danger="state == 'refuse'" decoration-success="state== 'approve'"/>
<field name="avarage" decoration-bf="1"/>
</list>
</field>
</record>
<!-- Menu Action -->
<record id="action_skill_appraisal" model="ir.actions.act_window">
<field name="name">Skill Appraisal</field>
<field name="res_model">skill.appraisal</field>
<field name="view_mode">list,form</field>
</record>
<!-- Menu Item -->
<menuitem id="menu_skill_appraisal_list" groups="exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_user,exp_hr_appraisal.group_appraisal_employee" sequence="2" name="Employee Skill Appraisal" parent="exp_hr_appraisal.appraisal_menu_id" action="action_skill_appraisal"/>
</odoo>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form View -->
<record id="view_emplo_goals_form" model="ir.ui.view">
<field name="name">years.employee.goals.form1</field>
<field name="model">years.employee.goals</field>
<field name="arch" type="xml">
<form string="Year Employee Goals">
<header>
<button string="Start Apprisal" invisible="state not in ['draft']" class="oe_highlight" type="object" name="apprisal"/>
<button string="Close" invisible="state not in ['apprisal']" class="oe_highlight" type="object" name="action_close"/>
<button string="Set To Dratt" invisible="state not in ['close','apprisal']" type="object" name="action_set_to_dratt"/>
<field name="state" required="1" statusbar_visible="draft,apprisal,close" widget="statusbar"/>
</header>
<sheet>
<group>
<group>
<field name="year_id" required="1"/>
<field name="employee_id" required="1"/>
<field name="department_id" required="1"/>
<field required="1" name="job_id"/>
</group>
<group>
<field required="1" name="category_id"/>
<field required="1" name="kpi_id" domain="[('category_id', '=',category_id)]"/>
<field required="1" name="responsible_item_id"/>
<field required="1" name="year_target"/>
<field required="1" invisible='1' name="method_of_calculate"/>
<field name="done" invisible="state in ['draft']" readonly="method_of_calculate not in ['undefined']"/>
<field name="choiec" invisible="state in ['draft']"/>
<field required="1" name="weight"/>
<field name="first_period_traget" invisible="1"/>
<field name="second_period_traget" invisible="1"/>
<field name="third_period_traget" invisible="1"/>
<field name="fourth_period_traget" invisible="1"/>
</group>
</group>
<notebook>
<page string="Period">
<field name="goals_period_ids" readonly="state == 'close'">
<list create="0" editable="bottom">
<field name="period_goals_id" width="12" options='{"no_open": False,"no_create_edit": True,"no_create":True}'/>
<field sum='Totat Traget' name="target" width="12"/>
<field name="done" width="12" column_invisible="parent.state == 'draft'" />
<field name="mark_evaluation" width="12" column_invisible="parent.state == 'draft'"/>
</list>
</field>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Tree View -->
<record id="view_year_goals_employee_tree1" model="ir.ui.view">
<field name="name">years.employee.goals.tree1</field>
<field name="model">years.employee.goals</field>
<field name="arch" type="xml">
<list string="Year Employee Goals">
<field name="employee_id"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="year_id"/>
<field name="category_id"/>
<field name="kpi_id"/>
<field name="responsible_item_id"/>
<field name="weight"/>
<field name="done" />
<field name="year_target" sum="Total"/>
<field name="state" decoration-info="state == 'draft'" decoration-primary="state== 'apprisal'" decoration-success="state== 'close'" widget="badge"/>
</list>
</field>
</record>
<!-- Menu Action -->
<record id="action_year_goal_emp" model="ir.actions.act_window">
<field name="name">Employee Goals</field>
<field name="res_model">years.employee.goals</field>
<field name="view_mode">list,form</field>
</record>
<!-- Menu Item -->
<menuitem groups="exp_hr_appraisal_kpi.group_appraisal_responsabil,exp_hr_appraisal.group_appraisal_manager,exp_hr_appraisal.group_appraisal_user" id="menu_year_employee_goals_list" sequence="2" name="Employee Goals" parent="exp_hr_appraisal_kpi.menu_kpi_goal_skill" action="action_year_goal_emp"/>
</odoo>

View File

@ -163,10 +163,8 @@ class Employee(models.Model):
employee.current_leave_state = leave_data.get(employee.id, {}).get('current_leave_state')
employee.current_leave_id = leave_data.get(employee.id, {}).get('current_leave_id')
# Assign is_absent for compatibility with standard hr_holidays module
# employee.is_absent_today = leave_data.get(employee.id) and leave_data.get(employee.id).get('current_leave_state') == 'validate'
is_absent = leave_data.get(employee.id) and leave_data.get(employee.id).get('current_leave_state') == 'validate'
employee.is_absent = leave_data.get(employee.id) and leave_data.get(employee.id).get('current_leave_state') == 'validate'
employee.is_absent = is_absent
def _compute_leaves_count(self):
leaves = self.env['hr.holidays'].read_group([
('employee_id', 'in', self.ids),

View File

@ -0,0 +1,56 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Advanced HR-LinkedIn Integration
================================
* Advanced HR-LinkedIn Integration module for Odoo 17.
Installation
============
* Install external python packages python-linkedin and mechanize.
Configuration
=============
* Mention the LinkedIn username and password in the section
LinkedIn Credentials under the recruitment configurations.
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.odoo.com/documentation/17.0/legal/licenses.html)
Credits
-------
* Developer: Nilmar Shereef,
Jesni Banu,
(V11 & V12) Milind Mohan,
(V16) Gayathri V,
(V17) Kailas Krishna
Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

View File

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

View File

@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Advanced HR-LinkedIn Integration',
'summary': "Basic module for LnkedIn-HR Recruitment connector",
'description': """The LinkedIn-HR Recruitment Connector Basic Module is
designed to optimize your recruitment workflow, offering a comprehensive
suite of features to enhance candidate sourcing and selection.""",
'category': 'Generic Modules/Human Resources',
'version': "18.0.1.0.0",
'depends': ['hr_recruitment', 'auth_oauth'],
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'data': [
'data/auth_linkedin_data.xml',
'security/ir.model.access.csv',
'views/recruitment_config_settings.xml',
'views/hr_job_linkedin_likes_comments_views.xml',
'views/linkedin_comments_views.xml',
'views/oauth_views.xml',
],
'external_dependencies':
{
'python': ['mechanize', 'linkedin'],
},
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

View File

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

View File

@ -0,0 +1,176 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
import logging
from werkzeug import urls
_logger = logging.getLogger(__name__)
try:
import mechanize
from linkedin_v2 import linkedin
from urllib.request import HTTPRedirectHandler as MechanizeRedirectHandler
except ImportError:
_logger.error('Odoo module hr_linkedin_recruitment depends on the several '
'external python package Please read the doc/requirement.txt '
'file inside the module.')
import json
import requests
from odoo.exceptions import ValidationError
from odoo import http, _
from odoo.http import request
from urllib.parse import urlparse
from urllib.parse import parse_qs
class LinkedinSocial(http.Controller):
@http.route('/linkedin/redirect', type='http', website=True, auth='public')
def social_linkedin_callbacks(self):
"""shares post on linkedin"""
url = request.httprequest.url
parsed_url = urlparse(url)
code = parse_qs(parsed_url.query)['code'][0]
state = parse_qs(parsed_url.query)['state'][0]
linkedin_auth_provider = request.env.ref(
'hr_linkedin_recruitment.provider_linkedin')
linked_in_url = request.env['hr.job'].browse(int(state))
recruitment = request.env['hr.job']
access_token = requests.post(
'https://www.linkedin.com/oauth/v2/accessToken',
params={
'Content-Type': 'x-www-form-urlencoded',
'grant_type': 'authorization_code',
# This is code obtained on previous step by Python script.
'code': code,
# Client ID of your created application
'client_id': linkedin_auth_provider.client_id,
# # Client Secret of your created application
'client_secret': linkedin_auth_provider.client_secret,
# This should be same as 'redirect_uri' field value of previous Python script.
'redirect_uri': linked_in_url._get_linkedin_post_redirect_uri(),
},
).json()['access_token']
li_credential = {}
linkedin_auth_provider = request.env.ref(
'hr_linkedin_recruitment.provider_linkedin')
if (linkedin_auth_provider.client_id and
linkedin_auth_provider.client_secret):
li_credential['api_key'] = linkedin_auth_provider.client_id
li_credential['secret_key'] = linkedin_auth_provider.client_secret
else:
raise ValidationError(_('LinkedIn Access Credentials are empty.!\n'
'Please fill up in Auth Provider form.'))
if request.env['ir.config_parameter'].sudo().get_param(
'recruitment.li_username'):
li_credential['un'] = request.env[
'ir.config_parameter'].sudo().get_param(
'recruitment.li_username')
else:
raise ValidationError(
_('Please fill up username in LinkedIn Credential settings.'))
if request.env['ir.config_parameter'].sudo().get_param(
'recruitment.li_password'):
li_credential['pw'] = request.env[
'ir.config_parameter'].sudo().get_param(
'recruitment.li_password')
else:
raise ValidationError(
_('Please fill up password in LinkedIn Credential settings.'))
url = 'https://api.linkedin.com/v2/ugcPosts'
li_suit_credent = {}
li_suit_credent['access_token'] = access_token
member_url = 'https://api.linkedin.com/v2/userinfo'
response = recruitment.get_urn('GET', member_url,
li_suit_credent['access_token'])
urn_response_text = response.json()
li_credential['profile_urn'] = urn_response_text['sub']
li_suit_credent['li_credential'] = li_credential
payload = json.dumps({
"author": "urn:li:person:" + li_credential['profile_urn'],
"lifecycleState": "PUBLISHED",
"specificContent": {
"com.linkedin.ugc.ShareContent": {
"shareCommentary": {
"text": linked_in_url.name
},
"shareMediaCategory": "NONE"
}
},
"visibility": {
"com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC"
}
})
headers = {
'Authorization': 'Bearer ' + access_token,
'X-Restli-Protocol-Version': '2.0.0',
'Content-Type': 'application/json',
}
if linked_in_url.name:
response = requests.request("POST", url, data=payload,
headers=headers)
share_response_text = response.json()
linked_in_url.write({
'access_token': access_token + '+' + share_response_text['id']
})
share_response_code = response.status_code
if share_response_code == 201:
linked_in_url.update_key = True
elif share_response_code == 404:
raise Warning("Resource does not exist.!")
elif share_response_code == 409:
raise Warning("Already shared!")
else:
raise Warning("Error!! Check your connection...")
else:
raise Warning("Provide a Job description....")
return_uri = 'https://www.linkedin.com/oauth/v2/authorization'
li_permissions = [' w_organization_social_feed ', ' r_liteprofile ',
' r_organization_social_feed ', ' r_ads ',
'w_member_social_feed', 'r_member_social',
'r_compliance', 'w_compliance']
auth = linkedin.LinkedInAuthentication(li_credential['api_key'],
li_credential['secret_key'],
return_uri,
li_permissions)
li_suit_credent = {}
li_suit_credent['access_token'] = access_token
li_credential['profile_urn'] = share_response_text['id']
li_suit_credent['li_credential'] = li_credential
url = urls.url_join(
http.request.env['ir.config_parameter'].sudo().get_param(
'web.base.url'),
'web#id=%(id)s&model=hr.job&action=%(action)s&view_type=form' % {
'id': state,
'action': request.env.ref('hr_recruitment.action_hr_job').id
})
return request.redirect(url)

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- This record defines the configuration for LinkedIn OAuth provider.-->
<record id="provider_linkedin" model="auth.oauth.provider">
<field name="name">LinkedIn</field>
<field name="auth_endpoint">
https://www.linkedin.com/oauth/v2/authorization
</field>
<field name="scope">r_basicprofile r_emailaddress w_share
w_member_social
</field>
<field name="validation_endpoint">https://api.linkedin.com/v2/me
</field>
<field name="data_endpoint">https://api.linkedin.com/v2/me</field>
<field name="css_class">fa fa-linkedin-square</field>
<field name="body">Share post with LinkedIn</field>
</record>
</data>
</odoo>

View File

@ -0,0 +1,6 @@
## Module <hr_linkedin_recruitment>
#### 05.02.2024
#### Version 17.0.1.0.0
##### ADD
- Initial Commit for Advanced HR-LinkedIn Integration

View File

@ -0,0 +1,8 @@
Odoo integration module "hr_linkedin_recruitment" depends on the several external python package.
Please ensure that listed packaged has installed in your system:
* python-linkedin (sudo python-linkedin)
* mechanize (sudo pip install mechanize)

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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 <https://www.gnu.org/licenses/>.
#
#############################################################################
from . import auth_outh_provider
from . import hr_job
from . import linkedin_comments
from . import recruitment_config

View File

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class OAuthProviderLinkedin(models.Model):
""" Adding client_secret field because some apps likes twitter,
linkedIn are using this value for its API operations """
_inherit = 'auth.oauth.provider'
client_secret = fields.Char(string='Client Secret',
help="Only need LinkedIn, Twitter etc..")

View File

@ -0,0 +1,161 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
#############################################################################
import logging
import requests
from werkzeug.urls import url_encode, url_join
from odoo import fields, models, _
from odoo.exceptions import ValidationError
_logger = logging.getLogger(__name__)
class HrJobShare(models.Model):
"""recruitment of different job positions"""
_inherit = 'hr.job'
update_key = fields.Char(string='Update Key', readonly=True)
access_token = fields.Char(string='Access Token',
help='Access token for your linkedin app')
comments = fields.Boolean(default=False, string='Likes Comments',
help='Which is used to visible the like comment retrieving button')
like_comment = fields.Boolean(default=False, string='Likes comment',
help='Which is used to visible the smart buttons of likes and comments')
post_likes = fields.Integer(string='Likes Count',
help="Total Number of likes in the shared post")
post_commands = fields.Integer(string='Comments Count',
help="Total Number of Comments in the shared post")
def _get_linkedin_post_redirect_uri(self):
"""finding redirecting url"""
print('url', self.get_base_url())
return url_join(self.get_base_url(), '/linkedin/redirect')
def share_linkedin(self):
""" Button function for sharing post """
self.comments = True
linkedin_auth_provider = self.env.ref(
'hr_linkedin_recruitment.provider_linkedin')
if linkedin_auth_provider.client_id and linkedin_auth_provider.client_secret:
linkedin_client_id = linkedin_auth_provider.client_id
params = {
'response_type': 'code',
'client_id': linkedin_client_id,
'redirect_uri': self._get_linkedin_post_redirect_uri(),
'state': self.id,
'scope': 'w_member_social r_1st_connections_size r_ads '
'r_ads_reporting r_basicprofile r_organization_admin '
'r_organization_social rw_ads rw_organization_admin '
'w_member_social w_organization_social openid profile email'
}
else:
raise ValidationError(_('LinkedIn Access Credentials are empty.!\n'
'Please fill up in Auth Provider form.'))
return {
'type': 'ir.actions.act_url',
'url': 'https://www.linkedin.com/oauth/v2/authorization?%s' % url_encode(
params),
'target': 'self'
}
def share_request(self, method, page_share_url, access_token, data):
""" Function will return UPDATED KEY , [201] if sharing is OK """
headers = {'x-li-format': 'json', 'Content-Type': 'application/json'}
params = {}
params.update({'oauth2_access_token': access_token})
kw = dict(data=data, params=params, headers=headers, timeout=60)
req_response = requests.request(method.upper(), page_share_url, **kw)
return req_response
def get_urn(self, method, has_access_url, access_token):
""" Function will return TRUE if credentials user has the access to update """
headers = {'x-li-format': 'json', 'Content-Type': 'application/json'}
params = {}
params.update({'oauth2_access_token': access_token})
kw = dict(params=params, headers=headers, timeout=60)
req_response = requests.request(method.upper(), has_access_url, **kw)
return req_response
def user_response_like(self):
"""return the likes"""
return
def likes_comments(self):
"""retrieving total count of likes and comments"""
self.like_comment = True
urn = self.access_token.split('+')[1]
url = "https://api.linkedin.com/v2/socialActions/" + urn
payload = {}
headers = {
'Authorization': 'Bearer ' + self.access_token.split('+')[0],
'LinkedIn-Version': '202308',
}
response = requests.request("GET", url, headers=headers)
response_comm_like = response.json()
self.post_likes = response_comm_like['likesSummary']['totalLikes']
self.post_commands = response_comm_like["commentsSummary"][
'aggregatedTotalComments']
comment_url = "https://api.linkedin.com/v2/socialActions/" + urn + "/comments"
headers = {
'LinkedIn-Version': '202308',
'Authorization': 'Bearer ' + self.access_token.split('+')[0],
}
response = requests.request("GET", comment_url, headers=headers,
data=payload)
response_commets = response.json()
comment_id = self.env['linkedin.comments'].search([]).mapped(
'comments_id')
for record in response_commets.get("elements", []):
if record['id'] not in comment_id:
self.env['linkedin.comments'].create({
'post_id': self.id,
'comments_id': record['id'],
'linkedin_comments': record['message']['text'],
})
def user_response_commends(self):
"""return the comments of the shared post"""
return {
'type': 'ir.actions.act_window',
'target': 'current',
'name': _('Linkedin'),
'view_mode': 'tree',
'res_model': 'linkedin.comments',
'domain': [('post_id', '=', self.id)],
}
def view_shared_post(self):
"""Direct link for viewing the shared post page in linkedin"""
url = "https://api.linkedin.com/v2/me"
payload = ""
headers = {
'LinkedIn-Version': '202208',
'Authorization': 'Bearer ' + self.access_token.split('+')[0],
}
response = requests.request("GET", url, headers=headers, data=payload)
response_activity = response.json()
activity_urn = response_activity["vanityName"]
return {
'type': 'ir.actions.act_url',
'url': 'https://www.linkedin.com/in/%s' % activity_urn + '/recent-activity/',
'target': 'self'
}

View File

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class LinkedinComments(models.Model):
"""class for retrieving comments of shared post"""
_name = 'linkedin.comments'
post_id = fields.Integer(string="Post ID",
help="Post id of the particular post")
comments_id = fields.Char(string="Comments ID",
help="For specifing the comments id")
linkedin_comments = fields.Char(string="Comments",
help="To add the posts comments")

View File

@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<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 <https://www.gnu.org/licenses/>.
#
#############################################################################
import logging
import urllib
_logger = logging.getLogger(__name__)
try:
import mechanize
from mechanize import _response
from mechanize import _rfc3986
import re
class MechanizeRedirectHandler(mechanize.HTTPRedirectHandler):
def http_error_302(self, req, fp, code, msg, headers):
if 'location' in headers:
newurl = headers.getheaders('location')[0]
elif 'uri' in headers:
newurl = headers.getheaders('uri')[0]
else:
return
newurl = _rfc3986.clean_url(newurl, "latin-1")
newurl = _rfc3986.urljoin(req.get_full_url(), newurl)
new = self.redirect_request(req, fp, code, msg, headers, newurl)
if new is None:
return
if hasattr(req, 'redirect_dict'):
visited = new.redirect_dict = req.redirect_dict
if (visited.get(newurl, 0) >= self.max_repeats or
len(visited) >= self.max_redirections):
raise urllib.error.HTTPError(req.get_full_url(), code,
self.inf_msg + msg, headers,
fp)
else:
visited = new.redirect_dict = req.redirect_dict = {}
visited[newurl] = visited.get(newurl, 0) + 1
fp.read()
fp.close()
# If the redirected URL doesn't match
new_url = new.get_full_url()
if not re.search('^http(?:s)?\:\/\/.*www\.linkedin\.com', new_url):
return _response.make_response('', headers.items(), new_url,
200, 'OK')
else:
return self.parent.open(new)
http_error_301 = http_error_303 = http_error_307 = http_error_302
http_error_refresh = http_error_302
except ImportError:
_logger.warning(
'Odoo module hr_linkedin_recruitment depends on the several external'
' python package'
'Please read the doc/requirement.txt file inside the module.')

View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
"""config settings"""
_inherit = 'res.config.settings'
li_username = fields.Char(string="User Name", help="Your Linkedin Username")
li_password = fields.Char(string="Password", help="Your Linkedin Password")
def set_values(self):
"""super the config to set the value"""
super(ResConfigSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param(
'recruitment.li_username', self.li_username)
self.env['ir.config_parameter'].sudo().set_param(
'recruitment.li_password', self.li_password)
def get_values(self):
"""super the config to get the value"""
res = super(ResConfigSettings, self).get_values()
res.update(
li_username=self.env['ir.config_parameter'].sudo().get_param(
'recruitment.li_username'),
li_password=self.env['ir.config_parameter'].sudo().get_param(
'recruitment.li_password'),
)
return res

View File

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_linkedin_comments,linkedin.comments,model_linkedin_comments,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_linkedin_comments linkedin.comments model_linkedin_comments base.group_user 1 1 1 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

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

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

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

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 43 KiB

View File

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

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

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

After

Width:  |  Height:  |  Size: 4.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

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

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

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