summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/hr/security/hr_security.xml1
-rw-r--r--addons/hr/views/hr_views.xml5
2 files changed, 5 insertions, 1 deletions
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml
index 0d4f310aa72..5b332251eff 100644
--- a/addons/hr/security/hr_security.xml
+++ b/addons/hr/security/hr_security.xml
@@ -4,6 +4,7 @@
<record id="group_hr_user" model="res.groups">
<field name="name">Officer</field>
<field name="category_id" ref="base.module_category_human_resources"/>
+ <field name="implied_ids" eval="[(4, ref('base.group_private_addresses'))]"/>
<field name="comment">The user will be able to approve document created by employees.</field>
</record>
diff --git a/addons/hr/views/hr_views.xml b/addons/hr/views/hr_views.xml
index 04cc371ab02..6011c5b1edb 100644
--- a/addons/hr/views/hr_views.xml
+++ b/addons/hr/views/hr_views.xml
@@ -86,7 +86,10 @@
</group>
<group string="Contact Information">
<field name="address_home_id"
- context="{'show_address': 1}"
+ context="{
+ 'show_address': 1,
+ 'default_type': 'private',
+ 'form_view_ref': 'base.res_partner_view_form_private'}"
options='{"always_reload": True, "highlight_first_line": True}'/>
<field name="is_address_home_a_company" invisible="1"/>
<div class="text-warning" groups="hr.group_hr_user"