diff --git a/hr_linkedin_recruitment/README.rst b/hr_linkedin_recruitment/README.rst new file mode 100644 index 000000000..ca280cd7f --- /dev/null +++ b/hr_linkedin_recruitment/README.rst @@ -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 `__ + +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 `__ + +Further information +=================== +HTML Description: ``__ diff --git a/hr_linkedin_recruitment/__init__.py b/hr_linkedin_recruitment/__init__.py new file mode 100644 index 000000000..3f8cd796b --- /dev/null +++ b/hr_linkedin_recruitment/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +from . import controller +from . import models diff --git a/hr_linkedin_recruitment/__manifest__.py b/hr_linkedin_recruitment/__manifest__.py new file mode 100644 index 000000000..35a96e24a --- /dev/null +++ b/hr_linkedin_recruitment/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +{ + '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': "17.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, +} diff --git a/hr_linkedin_recruitment/controller/__init__.py b/hr_linkedin_recruitment/controller/__init__.py new file mode 100644 index 000000000..ac75bc3fd --- /dev/null +++ b/hr_linkedin_recruitment/controller/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +from . import hr_linkedin_recruitment diff --git a/hr_linkedin_recruitment/controller/hr_linkedin_recruitment.py b/hr_linkedin_recruitment/controller/hr_linkedin_recruitment.py new file mode 100644 index 000000000..9c87252fb --- /dev/null +++ b/hr_linkedin_recruitment/controller/hr_linkedin_recruitment.py @@ -0,0 +1,176 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +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) diff --git a/hr_linkedin_recruitment/data/auth_linkedin_data.xml b/hr_linkedin_recruitment/data/auth_linkedin_data.xml new file mode 100644 index 000000000..4ababae5c --- /dev/null +++ b/hr_linkedin_recruitment/data/auth_linkedin_data.xml @@ -0,0 +1,20 @@ + + + + + + LinkedIn + + https://www.linkedin.com/oauth/v2/authorization + + r_basicprofile r_emailaddress w_share + w_member_social + + https://api.linkedin.com/v2/me + + https://api.linkedin.com/v2/me + fa fa-linkedin-square + Share post with LinkedIn + + + diff --git a/hr_linkedin_recruitment/doc/RELEASE_NOTES.md b/hr_linkedin_recruitment/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..976a08d27 --- /dev/null +++ b/hr_linkedin_recruitment/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 05.02.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial Commit for Advanced HR-LinkedIn Integration diff --git a/hr_linkedin_recruitment/doc/requirment.txt b/hr_linkedin_recruitment/doc/requirment.txt new file mode 100644 index 000000000..6a8ad0917 --- /dev/null +++ b/hr_linkedin_recruitment/doc/requirment.txt @@ -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) + + + diff --git a/hr_linkedin_recruitment/models/__init__.py b/hr_linkedin_recruitment/models/__init__.py new file mode 100644 index 000000000..55a856571 --- /dev/null +++ b/hr_linkedin_recruitment/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +from . import auth_outh_provider +from . import hr_job +from . import linkedin_comments +from . import recruitment_config diff --git a/hr_linkedin_recruitment/models/auth_outh_provider.py b/hr_linkedin_recruitment/models/auth_outh_provider.py new file mode 100644 index 000000000..0e9c79f6b --- /dev/null +++ b/hr_linkedin_recruitment/models/auth_outh_provider.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +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..") diff --git a/hr_linkedin_recruitment/models/hr_job.py b/hr_linkedin_recruitment/models/hr_job.py new file mode 100644 index 000000000..13112b9df --- /dev/null +++ b/hr_linkedin_recruitment/models/hr_job.py @@ -0,0 +1,161 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +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' + } diff --git a/hr_linkedin_recruitment/models/linkedin_comments.py b/hr_linkedin_recruitment/models/linkedin_comments.py new file mode 100644 index 000000000..fb38113f5 --- /dev/null +++ b/hr_linkedin_recruitment/models/linkedin_comments.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +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") diff --git a/hr_linkedin_recruitment/models/mechanize_op.py b/hr_linkedin_recruitment/models/mechanize_op.py new file mode 100644 index 000000000..a84d6cf6f --- /dev/null +++ b/hr_linkedin_recruitment/models/mechanize_op.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +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.') diff --git a/hr_linkedin_recruitment/models/recruitment_config.py b/hr_linkedin_recruitment/models/recruitment_config.py new file mode 100644 index 000000000..ab4577648 --- /dev/null +++ b/hr_linkedin_recruitment/models/recruitment_config.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# +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 diff --git a/hr_linkedin_recruitment/security/ir.model.access.csv b/hr_linkedin_recruitment/security/ir.model.access.csv new file mode 100644 index 000000000..8c813e2e0 --- /dev/null +++ b/hr_linkedin_recruitment/security/ir.model.access.csv @@ -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 diff --git a/hr_linkedin_recruitment/static/description/assets/icons/capture (1).png b/hr_linkedin_recruitment/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/capture (1).png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/check.png b/hr_linkedin_recruitment/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/check.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/chevron.png b/hr_linkedin_recruitment/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/chevron.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/cogs.png b/hr_linkedin_recruitment/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/cogs.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/consultation.png b/hr_linkedin_recruitment/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/consultation.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/ecom-black.png b/hr_linkedin_recruitment/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/ecom-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/education-black.png b/hr_linkedin_recruitment/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/education-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/hotel-black.png b/hr_linkedin_recruitment/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/hotel-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/img.png b/hr_linkedin_recruitment/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/img.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/license.png b/hr_linkedin_recruitment/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/license.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/lifebuoy.png b/hr_linkedin_recruitment/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/lifebuoy.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/manufacturing-black.png b/hr_linkedin_recruitment/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/manufacturing-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/photo-capture.png b/hr_linkedin_recruitment/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/photo-capture.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/pos-black.png b/hr_linkedin_recruitment/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/pos-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/puzzle.png b/hr_linkedin_recruitment/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/puzzle.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/restaurant-black.png b/hr_linkedin_recruitment/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/restaurant-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/service-black.png b/hr_linkedin_recruitment/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/service-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/trading-black.png b/hr_linkedin_recruitment/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/trading-black.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/training.png b/hr_linkedin_recruitment/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/training.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/update.png b/hr_linkedin_recruitment/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/update.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/user.png b/hr_linkedin_recruitment/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/user.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/icons/wrench.png b/hr_linkedin_recruitment/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/icons/wrench.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/Cybrosys R.png b/hr_linkedin_recruitment/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/Cybrosys R.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/categories.png b/hr_linkedin_recruitment/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/categories.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/check-box.png b/hr_linkedin_recruitment/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/check-box.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/compass.png b/hr_linkedin_recruitment/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/compass.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/corporate.png b/hr_linkedin_recruitment/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/corporate.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/customer-support.png b/hr_linkedin_recruitment/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/customer-support.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/cybrosys-logo.png b/hr_linkedin_recruitment/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/cybrosys-logo.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/email.svg b/hr_linkedin_recruitment/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/features.png b/hr_linkedin_recruitment/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/features.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/logo.png b/hr_linkedin_recruitment/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/logo.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/phone.svg b/hr_linkedin_recruitment/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/pictures.png b/hr_linkedin_recruitment/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/pictures.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/pie-chart.png b/hr_linkedin_recruitment/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/pie-chart.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/right-arrow.png b/hr_linkedin_recruitment/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/right-arrow.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/star (1) 2.svg b/hr_linkedin_recruitment/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/star.png b/hr_linkedin_recruitment/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/star.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/support (1) 1.svg b/hr_linkedin_recruitment/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/support-email.svg b/hr_linkedin_recruitment/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/support.png b/hr_linkedin_recruitment/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/support.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/tick-mark.svg b/hr_linkedin_recruitment/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/whatsapp 1.svg b/hr_linkedin_recruitment/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/misc/whatsapp.png b/hr_linkedin_recruitment/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/misc/whatsapp.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/misc/whatsapp.svg b/hr_linkedin_recruitment/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/hr_linkedin_recruitment/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hr_linkedin_recruitment/static/description/assets/modules/1.gif b/hr_linkedin_recruitment/static/description/assets/modules/1.gif new file mode 100644 index 000000000..d19e2b352 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/modules/1.gif differ diff --git a/hr_linkedin_recruitment/static/description/assets/modules/2.jpg b/hr_linkedin_recruitment/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..094fffcd1 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/modules/2.jpg differ diff --git a/hr_linkedin_recruitment/static/description/assets/modules/3.jpg b/hr_linkedin_recruitment/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..9141257c3 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/modules/3.jpg differ diff --git a/hr_linkedin_recruitment/static/description/assets/modules/4.jpg b/hr_linkedin_recruitment/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..ed878a938 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/modules/4.jpg differ diff --git a/hr_linkedin_recruitment/static/description/assets/modules/5.jpg b/hr_linkedin_recruitment/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/modules/5.jpg differ diff --git a/hr_linkedin_recruitment/static/description/assets/modules/6.jpg b/hr_linkedin_recruitment/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..693671ccf Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/modules/6.jpg differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/1.png b/hr_linkedin_recruitment/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..23e91d0e2 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/1.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/10.png b/hr_linkedin_recruitment/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..c86872c02 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/10.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/11.png b/hr_linkedin_recruitment/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..e0becba27 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/11.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/2.png b/hr_linkedin_recruitment/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..7018b0b47 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/2.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/3.png b/hr_linkedin_recruitment/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..afeec3465 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/3.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/4.png b/hr_linkedin_recruitment/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..32834719f Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/4.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/5.png b/hr_linkedin_recruitment/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..806870e16 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/5.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/6.png b/hr_linkedin_recruitment/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..ea4016e67 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/6.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/7.png b/hr_linkedin_recruitment/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..0c48ae3f7 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/7.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/8.png b/hr_linkedin_recruitment/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..ceccaf968 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/8.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/9.png b/hr_linkedin_recruitment/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..121250fe0 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/9.png differ diff --git a/hr_linkedin_recruitment/static/description/assets/screenshots/hero.gif b/hr_linkedin_recruitment/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..10514f443 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/assets/screenshots/hero.gif differ diff --git a/hr_linkedin_recruitment/static/description/banner.jpg b/hr_linkedin_recruitment/static/description/banner.jpg new file mode 100644 index 000000000..951119413 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/banner.jpg differ diff --git a/hr_linkedin_recruitment/static/description/icon.png b/hr_linkedin_recruitment/static/description/icon.png new file mode 100644 index 000000000..f8589f7d1 Binary files /dev/null and b/hr_linkedin_recruitment/static/description/icon.png differ diff --git a/hr_linkedin_recruitment/static/description/index.html b/hr_linkedin_recruitment/static/description/index.html new file mode 100644 index 000000000..c69ebe30e --- /dev/null +++ b/hr_linkedin_recruitment/static/description/index.html @@ -0,0 +1,874 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+
+

+ Advanced HR-LinkedIn Integration

+

+ Share your recruitment posts directly to LinkedIn via authorized login. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Share Recruitment Post to LinkedIn from Odoo +

+
+
+
+
+
+
+ +
+
+

+ Retrive Count of likes and Comments +

+
+
+
+
+
+
+ +
+
+

+ Retrive The Comments and direct view of Shared Post +

+
+
+
+
+
+
+ +
+
+

+ Enlarge Your Audience Range. +

+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ Setup a LinkedIn App +
+

+ Setup a LinkedIn App with proper information. + By visiting this link LinkedIn Developers +

+
+
+
+
+
+
+ +
+
+
+ Make sure the products are added +
+
+
+
+
+
+
+ +
+
+
+ Add the redirect URL in the App
+

+ Mention the redirect url in the OAuth 2.0 settings. +

+
+
+
+
+
+
+ +
+
+
+ Click on the menu OAuth Providers
+

+ Activate developer mode. +

+
+
+
+
+
+
+ +
+
+
+ Fill-up the Application Credentials
+

+ Client ID, Client Secret. +

+
+
+
+
+
+ +
+
+
+ Fill-up LinkedIn Credentials +
+

+ Username, Password. +

+
+
+
+
+
+
+ +
+
+
+ Share Job Requirement with LinkedIn + show
+

+ Share Job Requirement with LinkedIn by using 'Share on linked' button. +

+
+
+
+
+
+
+ +
+
+
+ Shared Post in LinkedIn
+

+ The particular job position is posted in linkedin. +

+
+
+
+
+
+
+ +
+
+
+ Retrieve Count of Likes And Comments on the button Click
+
+
+
+
+
+
+ +
+
+
+ Counts of Likes And Comments and also a + button for view the comments and shared post
+
+
+
+
+
+
+ +
+
+
+ Retrieved Comments Of Shared post
+

+ List of comments of shared post. +

+
+
+
+
+
+
+
    +
  • + Configure the layout. +
  • +
  • + Share Recruitment Post to LinkedIn from Odoo. +
  • +
  • + Retrive Count of likes and Comments. +
  • +
  • + Retrive The Comments and direct view of Shred Post. +
  • +
  • + Enlarge Your Audience Range. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:05th February 2024 +
+

+ Initial Commit for Advanced HR-LinkedIn Integration.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Licensing Consultancy

+
+
+
+
+
+
+

+ Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

+ Education

+

A platform for educational management

+
+
+
+
+ +

+ Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & + Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service + Management

+

Keep track of services and invoice

+
+
+
+
+ +

+ Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel + Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/hr_linkedin_recruitment/views/hr_job_linkedin_likes_comments_views.xml b/hr_linkedin_recruitment/views/hr_job_linkedin_likes_comments_views.xml new file mode 100644 index 000000000..da3e164ef --- /dev/null +++ b/hr_linkedin_recruitment/views/hr_job_linkedin_likes_comments_views.xml @@ -0,0 +1,64 @@ + + + + + + + hr.job.view.form.inherit.hr.linkedin.recruitment + + hr.job + + + +
+ +
+
+ + + + + + + +
+ +
+
+ +
+
+ +
+
+
+
+
diff --git a/hr_linkedin_recruitment/views/linkedin_comments_views.xml b/hr_linkedin_recruitment/views/linkedin_comments_views.xml new file mode 100644 index 000000000..1abc3d7e9 --- /dev/null +++ b/hr_linkedin_recruitment/views/linkedin_comments_views.xml @@ -0,0 +1,21 @@ + + + + + linkedin.comments.view.tree + linkedin.comments + + + + + + + + + + Post Comments + linkedin.comments + tree + + diff --git a/hr_linkedin_recruitment/views/oauth_views.xml b/hr_linkedin_recruitment/views/oauth_views.xml new file mode 100644 index 000000000..c0d1dbc96 --- /dev/null +++ b/hr_linkedin_recruitment/views/oauth_views.xml @@ -0,0 +1,18 @@ + + + + + + auth.oauth.provider.view.form.inherit.hr.linkedin.recruitment + + auth.oauth.provider + + + + + + + + diff --git a/hr_linkedin_recruitment/views/recruitment_config_settings.xml b/hr_linkedin_recruitment/views/recruitment_config_settings.xml new file mode 100644 index 000000000..a3de3e37c --- /dev/null +++ b/hr_linkedin_recruitment/views/recruitment_config_settings.xml @@ -0,0 +1,30 @@ + + + + + + + res.config.settings.view.form.inherit.hr.linkedin.recruitment + + res.config.settings + + + +

LinkedIn Credentials

+
+
+ + + + +
+
+
+
+
+
+