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

Loading…
Cancel
Save