Browse Source

[CHNG] Invisible qouts added

pull/29/head
SHEREEF PT 8 years ago
parent
commit
4853a101d3
  1. 2
      user_creation_from_employee/user_creation_from_employee_view.xml
  2. 6
      user_creation_from_employee/user_creation_from_employee_view.xml~

2
user_creation_from_employee/user_creation_from_employee_view.xml

@ -7,7 +7,7 @@
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<field name="work_email" position="after">
<field name="user_check" invisible=1/>
<field name="user_check" invisible="1"/>
</field>
<xpath expr="//form/sheet" position="before">
<header>

6
user_creation_from_employee/user_creation_from_employee_view.xml~

@ -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>

Loading…
Cancel
Save