-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: 14.0
Are you sure you want to change the base?
Conversation
bf9a5fd
to
5da244f
Compare
@anajuaristi @oihane @Daniel-CA @alfredoavanzosc review please. |
58f4195
to
bbf2a08
Compare
@api.onchange('partner_mobile', 'partner_phone', 'email_from') | ||
def onchange_applicant_duplicate(self): | ||
if self.partner_mobile: | ||
cond1 = [('partner_mobile', '=', self.partner_mobile), |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
…he applicant is duplicated or discarded.
bbf2a08
to
459f6c0
Compare
@Daniel-CA @oihane @anajuaristi @alfredoavanzosc review please. |
…he applicant is duplicated or discarded.