|
|
@ -7,12 +7,12 @@ |
|
|
|
<field name="inherit_id" ref="hr.view_employee_form"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="work_email" position="after"> |
|
|
|
<field name="user_check1"/> |
|
|
|
<field name="user_check" invisible=1/> |
|
|
|
</field> |
|
|
|
<xpath expr="//form/sheet" position="before"> |
|
|
|
<header> |
|
|
|
<button name="create_user" string="Create User" type="object" class="oe_highlight" |
|
|
|
attrs="{'invisible':[('user_check1','=',True)]}"/> |
|
|
|
attrs="{'invisible':[('user_check','=',True)]}"/> |
|
|
|
</header> |
|
|
|
</xpath> |
|
|
|
<field name="work_email" position="attributes"> |
|
|
@ -21,4 +21,4 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
</data> |
|
|
|
</odoo> |
|
|
|
</odoo> |
|
|
|