Skip to content

Commit bbfbda7

Browse files
committed
[MIG] hr_recruitment_phone from v12 to v14
Migrate README to the new subdir format
1 parent d07a97d commit bbfbda7

File tree

7 files changed

+11
-52
lines changed

7 files changed

+11
-52
lines changed

hr_recruitment_phone/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# -*- coding: utf-8 -*-
2-
31
from . import models

hr_recruitment_phone/__manifest__.py

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
# Copyright 2014-2019 Akretion France (http://www.akretion.com/)
1+
# Copyright 2014-2021 Akretion France (http://www.akretion.com/)
22
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

55
{
66
'name': 'HR Recruitment Phone',
7-
'version': '12.0.1.0.0',
7+
'version': '14.0.1.0.0',
88
'category': 'Phone',
99
'license': 'AGPL-3',
1010
'summary': 'Validate phone numbers in HR Recruitment',
11-
'description': """
12-
HR Recruitment Phone
13-
====================
14-
15-
This module validate phone numbers in the HR Recruitment module, just like the
16-
*base_phone* module valide phone numbers in the Partner form. Please refer to
17-
the description of the *base_phone* module for more information.
18-
19-
This module is independant from the Asterisk connector.
20-
21-
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com>
22-
for any help or question about this module.
23-
""",
2411
'author': "Akretion,Odoo Community Association (OCA)",
25-
'website': 'http://www.akretion.com/',
12+
'maintainers': ['alexis-via'],
13+
'website': 'https://github.com/OCA/connector-telephony',
2614
'depends': ['base_phone', 'hr_recruitment'],
2715
'data': [
2816
'security/ir.model.access.csv',
29-
'views/hr_applicant.xml',
3017
],
3118
'installable': True,
3219
'auto_install': True,
-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# -*- coding: utf-8 -*-
2-
31
from . import hr_applicant

hr_recruitment_phone/models/hr_applicant.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# -*- coding: utf-8 -*-
2-
# Copyright 2012-2018 Akretion France
1+
# Copyright 2012-2021 Akretion France (http://www.akretion.com/)
32
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
43
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
54

@@ -27,12 +26,12 @@ def name_get(self):
2726
res = []
2827
for appl in self:
2928
if appl.partner_id:
30-
name = u'%s (%s)' % (appl.partner_id.name, appl.name)
29+
name = '%s (%s)' % (appl.partner_id.name, appl.name)
3130
elif appl.partner_name:
32-
name = u'%s (%s)' % (appl.partner_name, appl.name)
31+
name = '%s (%s)' % (appl.partner_name, appl.name)
3332
else:
3433
name = appl.name
3534
res.append((appl.id, name))
3635
return res
3736
else:
38-
return super(HrApplicant, self).name_get()
37+
return super().name_get()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Alexis de Lattre <alexis.delattre@akretion.com>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module validate phone numbers in the Applicant form of the *Recruitment* module, just like the
2+
*phone_validation* module valide phone numbers in the Partner form. It also adds phone number lookup on applicants on incoming calls.

hr_recruitment_phone/views/hr_applicant.xml

-26
This file was deleted.

0 commit comments

Comments
 (0)