Merge pull request #5405 from expsa/fix/hr-department-tree-view-20251113-145804
fix: correct XPath selectors in HR department views
This commit is contained in:
commit
dfdfc24c23
|
|
@ -601,7 +601,7 @@
|
|||
<field name="model">hr.department</field>
|
||||
<field name="inherit_id" ref="hr.view_department_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<xpath expr="//field[@name='display_name']" position="after">
|
||||
<field name="branch_name" string="Branch" context="{'show_branch_short': True}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
@ -616,7 +616,8 @@
|
|||
<xpath expr="//field[@name='name']" position="after">
|
||||
<field name="branch_name" string="Branch" context="{'show_branch_short': True}"/>
|
||||
</xpath>
|
||||
<xpath expr="//group" position="inside">
|
||||
<xpath expr="//filter[@name='inactive']" position="after">
|
||||
<separator/>
|
||||
<filter string="Branch" name="group_branch" context="{'group_by':'branch_name', 'show_branch_short': True}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
|
|||
Loading…
Reference in New Issue