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:
Mohamed Eltayar 2025-11-13 14:59:18 +03:00 committed by GitHub
commit dfdfc24c23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

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