Update entity.xml
This commit is contained in:
parent
14662cb267
commit
a479bffc3d
|
|
@ -31,6 +31,7 @@
|
|||
<field name="code" attrs="{'readonly': [('type','in',['employee','external'])]}"/>
|
||||
<field name="parent_id"
|
||||
attrs="{'required':[('type', 'in', ['employee'])],'invisible': [('type','in',['external'])]}"/>
|
||||
<field name="is_branch"/>
|
||||
<field name="executive_direction"
|
||||
attrs="{'invisible': [('type','in',['employee','external'])]}"/>
|
||||
<field name="need_approve"
|
||||
|
|
@ -88,10 +89,14 @@
|
|||
<filter name="Employee" string="Employee" domain="[('type','=','employee')]"/>
|
||||
<filter name="Internal Unit" string="Internal Unit" domain="[('type','=','unit')]"/>
|
||||
<filter name="External Unit" string="External Unit" domain="[('type','=','external')]"/>
|
||||
<filter name="Is Branch" string="Is Branch" domain="[('is_branch','=',True)]"/>
|
||||
<filter name="NOT Branch" string="NOT Branch" domain="[('is_branch','=',False)]"/>
|
||||
<group expand="1" string="Group By">
|
||||
<filter string="Type" name="type" domain="[]" context="{'group_by':'type'}"/>
|
||||
<filter string="Parent Entity" name="parent_type" domain="[]"
|
||||
context="{'group_by':'parent_id'}"/>
|
||||
<filter string="Is Branch" name="group_by_is_branch" domain="[('is_branch', '=', True)]" context="{'group_by':'is_branch'}"/>
|
||||
<filter string="Not Branch" name="group_by_noy_is_branch" domain="[('is_branch', '=', False)]" context="{'group_by':'is_branch'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
|
|
|
|||
Loading…
Reference in New Issue