Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] hr_applicant_duplicate: Onchange in phone and email to see if t… #100

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

Berezi
Copy link
Contributor

@Berezi Berezi commented Jul 16, 2021

…he applicant is duplicated or discarded.

@Berezi Berezi force-pushed the hr-addons14-hr_applicant_duplicate branch from bf9a5fd to 5da244f Compare July 16, 2021 10:47
@Berezi
Copy link
Contributor Author

Berezi commented Jul 16, 2021

@anajuaristi @oihane @Daniel-CA @alfredoavanzosc review please.

@Berezi Berezi force-pushed the hr-addons14-hr_applicant_duplicate branch 2 times, most recently from 58f4195 to bbf2a08 Compare July 19, 2021 08:08
@oihane oihane added this to the 14.0 milestone Jul 19, 2021
@api.onchange('partner_mobile', 'partner_phone', 'email_from')
def onchange_applicant_duplicate(self):
if self.partner_mobile:
cond1 = [('partner_mobile', '=', self.partner_mobile),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cond = [('partner_mobile', '=', self.partner_mobile),'|', ('active', '=', True), ('active', '=', False)]

raise ValidationError(
_("Applicant mobile is duplicated."))
if self.partner_phone:
cond3 = [('partner_phone', '=', self.partner_phone),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

cond5 = [
('email_from', '=', self.email_from), ('active', '=', True)]
cond6 = [
('email_from', '=', self.email_from), ('active', '=', False)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem

"name": "Hr Applicant Duplicate",
'version': '14.0.1.0.0',
"author": "Avanzosc",
"category": "Sales",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"website": "https://www.avanzosc.es",

@@ -0,0 +1,15 @@
# Copyright 2021 Berezi - Iker - AvanzOSC
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Añade solo tu nombre al módulo

@Berezi Berezi force-pushed the hr-addons14-hr_applicant_duplicate branch from bbf2a08 to 459f6c0 Compare July 21, 2021 11:52
@Berezi
Copy link
Contributor Author

Berezi commented Jul 21, 2021

@Daniel-CA @oihane @anajuaristi @alfredoavanzosc review please.

@avanzosc avanzosc deleted a comment from codecov bot Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants