diff --git a/recruitment_twitter/README.rst b/recruitment_twitter/README.rst new file mode 100755 index 000000000..ffae692a7 --- /dev/null +++ b/recruitment_twitter/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Recruitment Twitter +=================== +This integration module makes your HR recruitment better. You can share your +Job positions directly to Twitter + +Configuration +============= +* Need to install python package tweepy. +* pip install tweepy + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credit +------- +* Developer: (V17) Vishnu KP, + 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 + +Further information +=================== +HTML Description: ``__ diff --git a/recruitment_twitter/__init__.py b/recruitment_twitter/__init__.py new file mode 100644 index 000000000..15d5de90c --- /dev/null +++ b/recruitment_twitter/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models diff --git a/recruitment_twitter/__manifest__.py b/recruitment_twitter/__manifest__.py new file mode 100644 index 000000000..b20ebec96 --- /dev/null +++ b/recruitment_twitter/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'HR Recruitment Twitter Integration', + 'version': "17.0.1.0.0", + 'category': 'Extra Tools', + 'summary': """Share your job positions directly to twitter.""", + 'description': """This integration module makes your HR recruitment better. + You can share your Job positions directly to Twitter""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'depends': ['hr_recruitment', 'website'], + 'data': [ + "views/hr_job_views.xml", + "views/res_config_settings_views.xml" + ], + 'external_dependencies': { + 'python': ['tweepy'], + }, + 'assets': { + 'web.assets_backend': [ + 'recruitment_twitter/static/src/js/many2many_binary.js']}, + 'images': ['static/description/banner.jpg'], + 'license': "AGPL-3", + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/recruitment_twitter/doc/RELEASE_NOTES.md b/recruitment_twitter/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..4d62d2916 --- /dev/null +++ b/recruitment_twitter/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 01.04.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial commit for Recruitment Twitter diff --git a/recruitment_twitter/models/__init__.py b/recruitment_twitter/models/__init__.py new file mode 100644 index 000000000..937bb8781 --- /dev/null +++ b/recruitment_twitter/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import hr_job +from . import res_config_settings diff --git a/recruitment_twitter/models/hr_job.py b/recruitment_twitter/models/hr_job.py new file mode 100644 index 000000000..c2e92c6b2 --- /dev/null +++ b/recruitment_twitter/models/hr_job.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +import logging +import tweepy +from odoo import api, fields, models, _ +from odoo.exceptions import UserError + +_logger = logging.getLogger(__name__) + + +class HrJob(models.Model): + """Post job position on Twitter""" + _inherit = 'hr.job' + + attachment_ids = fields.Many2many('ir.attachment', 'res_id', + string="Twitter Poster", + help="Upload image to post") + + def action_job_post(self): + """ + Post the job position on Twitter. + + This method posts the job position on Twitter using the configured API + credentials and the attached image. The job position URL + is included in the tweet. + + :return: Dictionary with notification details if posted successfully. + :raise: UserError if API credentials are missing or invalid, or if no + poster is attached. + """ + job_post_url = str(self.get_base_url()) + str("/jobs/detail/") + str( + self.id) + consumer_key = self.env['ir.config_parameter'].get_param( + 'recruitment_twitter.consumer_key') + consumer_secret = self.env['ir.config_parameter'].get_param( + 'recruitment_twitter.consumer_secret') + access_token = self.env['ir.config_parameter'].get_param( + 'recruitment_twitter.access_token') + access_token_secret = self.env['ir.config_parameter'].get_param( + 'recruitment_twitter.access_token_secret') + + if (consumer_key and consumer_secret and access_token and + access_token_secret): + client = tweepy.Client( + consumer_key=consumer_key, consumer_secret=consumer_secret, + access_token=access_token, + access_token_secret=access_token_secret) + if self.attachment_ids: + file_path = max(self.attachment_ids)._full_path( + max(self.attachment_ids).store_fname) + try: + auth = tweepy.OAuth1UserHandler(consumer_key, + consumer_secret) + auth.set_access_token(access_token, access_token_secret) + tweepy_api = tweepy.API(auth) + media = tweepy_api.media_upload(file_path) + client.create_tweet(text=job_post_url, + media_ids=[media.media_id]) + message = { + 'type': 'success', + 'title': _('Success!'), + 'message': _('Posted successfully.'), + 'sticky': False, + } + return {'type': 'ir.actions.client', + 'tag': 'display_notification', 'params': message} + except Exception as exc: + _logger.warning(exc) + raise UserError(_('Failed Authentication')) from exc + else: + raise UserError(_('Please add a poster.')) + raise UserError(_('Please fill API credentials properly.')) + + @api.onchange('attachment_ids') + def _onchange_attachment_ids(self): + """ + Onchange method triggered when the attached images are changed. + This method checks if the attachments are of type 'image'. + If any attachment is not an image, it raises a UserError. + """ + for attachment in self.attachment_ids: + if attachment.index_content != 'image': + raise UserError(_('Only images allowed.')) diff --git a/recruitment_twitter/models/res_config_settings.py b/recruitment_twitter/models/res_config_settings.py new file mode 100644 index 000000000..0eccf9f05 --- /dev/null +++ b/recruitment_twitter/models/res_config_settings.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """Fields for twitter authentication""" + _inherit = "res.config.settings" + + consumer_key = fields.Char(string="Consumer Key", + help="The Consumer Key provided by Twitter " + "for authentication.", + config_parameter='recruitment_twitter.consumer_key') + consumer_secret = fields.Char(string="Consumer Secret Key", + help="The Consumer Secret Key provided by" + " Twitter for authentication.", + config_parameter='recruitment_twitter.consumer_secret') + access_token = fields.Char(string="Access Token", + help="The Access Token provided by Twitter for" + " authentication.", + config_parameter='recruitment_twitter.access_token') + access_token_secret = fields.Char(string="Access Token Secret", + help="The Access Token Secret provided " + "by Twitter for authentication.", + config_parameter='recruitment_twitter.access_token_secret') diff --git a/recruitment_twitter/static/description/assets/icons/capture (1).png b/recruitment_twitter/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/capture (1).png differ diff --git a/recruitment_twitter/static/description/assets/icons/check.png b/recruitment_twitter/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/check.png differ diff --git a/recruitment_twitter/static/description/assets/icons/chevron.png b/recruitment_twitter/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/chevron.png differ diff --git a/recruitment_twitter/static/description/assets/icons/cogs.png b/recruitment_twitter/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/cogs.png differ diff --git a/recruitment_twitter/static/description/assets/icons/consultation.png b/recruitment_twitter/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/consultation.png differ diff --git a/recruitment_twitter/static/description/assets/icons/ecom-black.png b/recruitment_twitter/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/ecom-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/education-black.png b/recruitment_twitter/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/education-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/hotel-black.png b/recruitment_twitter/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/hotel-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/img.png b/recruitment_twitter/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/img.png differ diff --git a/recruitment_twitter/static/description/assets/icons/license.png b/recruitment_twitter/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/license.png differ diff --git a/recruitment_twitter/static/description/assets/icons/lifebuoy.png b/recruitment_twitter/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/lifebuoy.png differ diff --git a/recruitment_twitter/static/description/assets/icons/manufacturing-black.png b/recruitment_twitter/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/manufacturing-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/photo-capture.png b/recruitment_twitter/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/photo-capture.png differ diff --git a/recruitment_twitter/static/description/assets/icons/pos-black.png b/recruitment_twitter/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/pos-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/puzzle.png b/recruitment_twitter/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/puzzle.png differ diff --git a/recruitment_twitter/static/description/assets/icons/restaurant-black.png b/recruitment_twitter/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/restaurant-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/service-black.png b/recruitment_twitter/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/service-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/trading-black.png b/recruitment_twitter/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/trading-black.png differ diff --git a/recruitment_twitter/static/description/assets/icons/training.png b/recruitment_twitter/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/training.png differ diff --git a/recruitment_twitter/static/description/assets/icons/update.png b/recruitment_twitter/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/update.png differ diff --git a/recruitment_twitter/static/description/assets/icons/user.png b/recruitment_twitter/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/user.png differ diff --git a/recruitment_twitter/static/description/assets/icons/wrench.png b/recruitment_twitter/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/recruitment_twitter/static/description/assets/icons/wrench.png differ diff --git a/recruitment_twitter/static/description/assets/misc/Cybrosys R.png b/recruitment_twitter/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/Cybrosys R.png differ diff --git a/recruitment_twitter/static/description/assets/misc/categories.png b/recruitment_twitter/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/categories.png differ diff --git a/recruitment_twitter/static/description/assets/misc/check-box.png b/recruitment_twitter/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/check-box.png differ diff --git a/recruitment_twitter/static/description/assets/misc/compass.png b/recruitment_twitter/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/compass.png differ diff --git a/recruitment_twitter/static/description/assets/misc/corporate.png b/recruitment_twitter/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/corporate.png differ diff --git a/recruitment_twitter/static/description/assets/misc/customer-support.png b/recruitment_twitter/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/customer-support.png differ diff --git a/recruitment_twitter/static/description/assets/misc/cybrosys-logo.png b/recruitment_twitter/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/cybrosys-logo.png differ diff --git a/recruitment_twitter/static/description/assets/misc/email.svg b/recruitment_twitter/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recruitment_twitter/static/description/assets/misc/features.png b/recruitment_twitter/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/features.png differ diff --git a/recruitment_twitter/static/description/assets/misc/logo.png b/recruitment_twitter/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/logo.png differ diff --git a/recruitment_twitter/static/description/assets/misc/phone.svg b/recruitment_twitter/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/recruitment_twitter/static/description/assets/misc/pictures.png b/recruitment_twitter/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/pictures.png differ diff --git a/recruitment_twitter/static/description/assets/misc/pie-chart.png b/recruitment_twitter/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/pie-chart.png differ diff --git a/recruitment_twitter/static/description/assets/misc/right-arrow.png b/recruitment_twitter/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/right-arrow.png differ diff --git a/recruitment_twitter/static/description/assets/misc/star (1) 2.svg b/recruitment_twitter/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/recruitment_twitter/static/description/assets/misc/star.png b/recruitment_twitter/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/star.png differ diff --git a/recruitment_twitter/static/description/assets/misc/support (1) 1.svg b/recruitment_twitter/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/recruitment_twitter/static/description/assets/misc/support-email.svg b/recruitment_twitter/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/recruitment_twitter/static/description/assets/misc/support.png b/recruitment_twitter/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/support.png differ diff --git a/recruitment_twitter/static/description/assets/misc/tick-mark.svg b/recruitment_twitter/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/recruitment_twitter/static/description/assets/misc/whatsapp 1.svg b/recruitment_twitter/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/recruitment_twitter/static/description/assets/misc/whatsapp.png b/recruitment_twitter/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/recruitment_twitter/static/description/assets/misc/whatsapp.png differ diff --git a/recruitment_twitter/static/description/assets/misc/whatsapp.svg b/recruitment_twitter/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/recruitment_twitter/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recruitment_twitter/static/description/assets/modules/banner1.gif b/recruitment_twitter/static/description/assets/modules/banner1.gif new file mode 100644 index 000000000..8ac32db03 Binary files /dev/null and b/recruitment_twitter/static/description/assets/modules/banner1.gif differ diff --git a/recruitment_twitter/static/description/assets/modules/banner2.jpg b/recruitment_twitter/static/description/assets/modules/banner2.jpg new file mode 100644 index 000000000..d05b1744e Binary files /dev/null and b/recruitment_twitter/static/description/assets/modules/banner2.jpg differ diff --git a/recruitment_twitter/static/description/assets/modules/banner3.png b/recruitment_twitter/static/description/assets/modules/banner3.png new file mode 100644 index 000000000..87bb832e6 Binary files /dev/null and b/recruitment_twitter/static/description/assets/modules/banner3.png differ diff --git a/recruitment_twitter/static/description/assets/modules/banner4.png b/recruitment_twitter/static/description/assets/modules/banner4.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/recruitment_twitter/static/description/assets/modules/banner4.png differ diff --git a/recruitment_twitter/static/description/assets/modules/banner5.jpg b/recruitment_twitter/static/description/assets/modules/banner5.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/recruitment_twitter/static/description/assets/modules/banner5.jpg differ diff --git a/recruitment_twitter/static/description/assets/modules/banner6.jpg b/recruitment_twitter/static/description/assets/modules/banner6.jpg new file mode 100644 index 000000000..87c2bb2ba Binary files /dev/null and b/recruitment_twitter/static/description/assets/modules/banner6.jpg differ diff --git a/recruitment_twitter/static/description/assets/screenshots/hero.gif b/recruitment_twitter/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7eaaf5ae4 Binary files /dev/null and b/recruitment_twitter/static/description/assets/screenshots/hero.gif differ diff --git a/recruitment_twitter/static/description/assets/screenshots/ss1.png b/recruitment_twitter/static/description/assets/screenshots/ss1.png new file mode 100644 index 000000000..a8c1ac99d Binary files /dev/null and b/recruitment_twitter/static/description/assets/screenshots/ss1.png differ diff --git a/recruitment_twitter/static/description/assets/screenshots/ss2.png b/recruitment_twitter/static/description/assets/screenshots/ss2.png new file mode 100644 index 000000000..3876c66f8 Binary files /dev/null and b/recruitment_twitter/static/description/assets/screenshots/ss2.png differ diff --git a/recruitment_twitter/static/description/assets/screenshots/ss3.png b/recruitment_twitter/static/description/assets/screenshots/ss3.png new file mode 100644 index 000000000..3dc73380e Binary files /dev/null and b/recruitment_twitter/static/description/assets/screenshots/ss3.png differ diff --git a/recruitment_twitter/static/description/banner.jpg b/recruitment_twitter/static/description/banner.jpg new file mode 100644 index 000000000..66267658e Binary files /dev/null and b/recruitment_twitter/static/description/banner.jpg differ diff --git a/recruitment_twitter/static/description/icon.png b/recruitment_twitter/static/description/icon.png new file mode 100644 index 000000000..66e5eadce Binary files /dev/null and b/recruitment_twitter/static/description/icon.png differ diff --git a/recruitment_twitter/static/description/index.html b/recruitment_twitter/static/description/index.html new file mode 100644 index 000000000..00f1b7e33 --- /dev/null +++ b/recruitment_twitter/static/description/index.html @@ -0,0 +1,588 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Recruitment Twitter

+

+ Share Your Job Positions Directly on Twitter. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

+ Odoo 17 Community & Enterprise Edition + Support.

+

Recruitment Twitter in Odoo 17 Community Enterprise Edition + Support. +

+
+
+
+
+
+
+ +
+
+

+ Twitter sharing

+

This integration module makes your HR recruitment better. You + can share your Job positions directly to Twitter. +

+
+
+
+
+
+
+ +
+
+

+ Share Recruitment Post to Twitter from Odoo.

+

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

+ Configure Twitter

+
+ Configure Twitter credentials in your system +
+
+
+
+
+
+
+ +
+
+

+ Post the poster

+
+ After selecting the poster in to the corresponding field press share on twitter button
+
+
+
+
+
+
+ +
+
+

+ poster on Twitter

+
+ Shared poster can see in twitter
+
+
+
+
+
+
+
    +
  • + Transfer + requirement from odoo to twitter attached with images. +
  • +
  • + Easy to share the requirements +
  • + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:09 Feb 2024 +
+

+ HR Recruitment Twitter 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/recruitment_twitter/static/src/js/many2many_binary.js b/recruitment_twitter/static/src/js/many2many_binary.js new file mode 100644 index 000000000..bb4b1fbe6 --- /dev/null +++ b/recruitment_twitter/static/src/js/many2many_binary.js @@ -0,0 +1,23 @@ +/** @odoo-module **/ +import { Many2ManyBinaryField } from "@web/views/fields/many2many_binary/many2many_binary_field" +import { patch } from "@web/core/utils/patch"; +import { _t } from "@web/core/l10n/translation"; + +patch(Many2ManyBinaryField.prototype, { +async onFileUploaded(files) { + for (const file of files) { + if (file.error) { + return this.notification.add(file.error, { + title: _t("Uploading error"), + type: "danger", + }); + } + if (this.props.record.resModel === "hr.job" && file.mimetype !== "image/png"){ + return this.notification.add(file.error, { + title: _t("Uploading error File is not an image"), + type: "danger", + }); + } + await this.operations.saveRecord([file.id]); + } + }}); \ No newline at end of file diff --git a/recruitment_twitter/views/hr_job_views.xml b/recruitment_twitter/views/hr_job_views.xml new file mode 100644 index 000000000..94a3f8b50 --- /dev/null +++ b/recruitment_twitter/views/hr_job_views.xml @@ -0,0 +1,21 @@ + + + + + hr.job.view.form.inherit.recruitment.twitter + hr.job + + + + + + + +
+
+
+
+
+
diff --git a/recruitment_twitter/views/res_config_settings_views.xml b/recruitment_twitter/views/res_config_settings_views.xml new file mode 100644 index 000000000..2e3db586f --- /dev/null +++ b/recruitment_twitter/views/res_config_settings_views.xml @@ -0,0 +1,42 @@ + + + + + + res.config.settings.view.form.inherit.recruitment.twitter + + res.config.settings + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+