Skip to content

Commit 148fb2f

Browse files
author
Pedro M. Baeza
authored
Merge pull request OCA#5511 from Tecnativa/17.0-ou_imp-hr-private_cleaning
[17.0][OU-IMP] hr: Private data use mobile
2 parents b675566 + f1bc4c2 commit 148fb2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openupgrade_scripts/scripts/hr/17.0.1.1/post-migration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def _transfer_employee_private_data(env):
2828
he.private_country_id, rpp.country_id, rp.country_id
2929
),
3030
private_email = COALESCE(he.private_email, rpp.email, rp.email),
31-
private_phone = COALESCE(he.private_phone, rpp.phone, rp.phone),
31+
private_phone = COALESCE(
32+
he.private_phone, rpp.phone, rpp.mobile, rp.phone, rp.mobile
33+
),
3234
private_state_id = COALESCE(he.private_state_id, rpp.state_id, rp.state_id),
3335
private_street = COALESCE(he.private_street, rpp.street, rp.street),
3436
private_street2 = COALESCE(he.private_street2, rpp.street2, rp.street2),

0 commit comments

Comments
 (0)