[FIX] hr: correctly link work address to admin employee

Currently, when we install Employee App, the Administrator work address
is linked to a new res.partner (Administrator).

So after this commit, Administrator work address will be linked to
the res.partner of company when Employee App is installed.

closes odoo/odoo#67910

Taskid: 2479958
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Meet Patel
2021-03-16 07:13:53 +00:00
committed by Barad Mahendra
parent 6a2b568d63
commit c0ca736193
+1 -1
View File
@@ -22,7 +22,7 @@
<field name="name" eval="obj(ref('base.partner_admin')).name" model="res.partner"/>
<field name="department_id" ref="dep_administration"/>
<field name="user_id" ref="base.user_admin"/>
<field name="address_id" ref="base.partner_admin"/>
<field name="address_id" ref="base.main_company"/>
<field name="address_home_id" ref="res_partner_admin_private_address"/>
<field name="image_1920" eval="obj(ref('base.partner_admin')).image_1920" model="res.partner"/>
</record>