You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
1.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="hr_employee_form_inherit" model="ir.ui.view">
<field name="name">hr.employee.form</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<field name="work_email" position="after">
<field name="user_check_tick" 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_check_tick','=',True)]}"/>
</header>
</xpath>
<field name="work_email" position="attributes">
<attribute name="required">1</attribute>
</field>
</field>
</record>
</data>
</odoo>