Skip to content

Commit d410659

Browse files
committed
hr_recruitment_phone: black, isort, ...
1 parent bbfbda7 commit d410659

File tree

5 files changed

+30
-22
lines changed

5 files changed

+30
-22
lines changed

hr_recruitment_phone/README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Will be generated from the readme subdir

hr_recruitment_phone/__manifest__.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

55
{
6-
'name': 'HR Recruitment Phone',
7-
'version': '14.0.1.0.0',
8-
'category': 'Phone',
9-
'license': 'AGPL-3',
10-
'summary': 'Validate phone numbers in HR Recruitment',
11-
'author': "Akretion,Odoo Community Association (OCA)",
12-
'maintainers': ['alexis-via'],
13-
'website': 'https://github.com/OCA/connector-telephony',
14-
'depends': ['base_phone', 'hr_recruitment'],
15-
'data': [
16-
'security/ir.model.access.csv',
17-
],
18-
'installable': True,
19-
'auto_install': True,
6+
"name": "HR Recruitment Phone",
7+
"version": "14.0.1.0.0",
8+
"category": "Phone",
9+
"license": "AGPL-3",
10+
"summary": "Validate phone numbers in HR Recruitment",
11+
"author": "Akretion,Odoo Community Association (OCA)",
12+
"maintainers": ["alexis-via"],
13+
"website": "https://github.com/OCA/connector-telephony",
14+
"depends": ["base_phone", "hr_recruitment"],
15+
"data": [
16+
"security/ir.model.access.csv",
17+
],
18+
"installable": True,
19+
"auto_install": True,
2020
}

hr_recruitment_phone/models/hr_applicant.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66

77

88
class HrApplicant(models.Model):
9-
_name = 'hr.applicant'
10-
_inherit = ['hr.applicant', 'phone.validation.mixin']
9+
_name = "hr.applicant"
10+
_inherit = ["hr.applicant", "phone.validation.mixin"]
1111
_phone_name_sequence = 50
12-
_phone_name_fields = ['partner_phone', 'partner_mobile']
12+
_phone_name_fields = ["partner_phone", "partner_mobile"]
1313

14-
@api.onchange('partner_phone')
14+
@api.onchange("partner_phone")
1515
def partner_phone_change(self):
1616
if self.partner_phone:
1717
self.partner_phone = self.phone_format(self.partner_phone)
1818

19-
@api.onchange('partner_mobile')
19+
@api.onchange("partner_mobile")
2020
def partner_mobile_change(self):
2121
if self.partner_mobile:
2222
self.partner_mobile = self.phone_format(self.partner_mobile)
2323

2424
def name_get(self):
25-
if self._context.get('callerid'):
25+
if self._context.get("callerid"):
2626
res = []
2727
for appl in self:
2828
if appl.partner_id:
29-
name = '%s (%s)' % (appl.partner_id.name, appl.name)
29+
name = "%s (%s)" % (appl.partner_id.name, appl.name)
3030
elif appl.partner_name:
31-
name = '%s (%s)' % (appl.partner_name, appl.name)
31+
name = "%s (%s)" % (appl.partner_name, appl.name)
3232
else:
3333
name = appl.name
3434
res.append((appl.id, name))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../hr_recruitment_phone

setup/hr_recruitment_phone/setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)