[FIX] hr: working and home adresses should not be customers by default, only 'normal...
authorThibault Delavallée <tde@openerp.com>
Fri, 13 Jun 2014 07:07:28 +0000 (09:07 +0200)
committerThibault Delavallée <tde@openerp.com>
Fri, 13 Jun 2014 07:07:28 +0000 (09:07 +0200)
addons/hr/hr_view.xml

index 3e79c0c..0d90d5d 100644 (file)
@@ -35,7 +35,9 @@
                             <page string="Public Information">
                                 <group>
                                     <group string="Contact Information">
-                                        <field name="address_id" on_change="onchange_address_id(address_id)" context="{'show_address': 1}" options='{"always_reload": True, "highlight_first_line": True}'/>
+                                        <field name="address_id" on_change="onchange_address_id(address_id)"
+                                            context="{'show_address': 1, 'default_customer': False}"
+                                            options='{"always_reload": True, "highlight_first_line": True}'/>
                                         <field name="work_email" widget="email"/>
                                         <field name="work_phone"/>
                                         <field name="mobile_phone"/>
@@ -64,7 +66,9 @@
                                         <field name="otherid" groups="base.group_hr_user"/>
                                     </group>
                                     <group string="Contact Information">
-                                        <field name="address_home_id" context="{'show_address': 1}" options='{"always_reload": True, "highlight_first_line": True}'/>
+                                        <field name="address_home_id"
+                                            context="{'show_address': 1, 'default_customer': False}"
+                                            options='{"always_reload": True, "highlight_first_line": True}'/>
                                     </group>
                                     <group string="Status">
                                         <field name="gender"/>