Merge pull request #5414 from expsa/fix/hr-department-xml-error-20251113-185434

fix: remove invalid department_id field from hr.department views
This commit is contained in:
Mohamed Eltayar 2025-11-13 18:55:48 +03:00 committed by GitHub
commit 5d5c560167
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -567,7 +567,6 @@
<field name="department_type" required="1"/>
<field name="is_branch" string="Is Branch?"/>
<field name="branch_name" string="Branch Name" context="{'show_branch_short': True}"/>
<field name="department_id" context="{'show_department_short': True}"/>
</xpath>
<xpath expr="//field[@name='name']" position="after">
<label for="english_name" class="oe_edit_only"/>
@ -619,12 +618,10 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="branch_name" string="Branch" context="{'show_branch_short': True}"/>
<field name="department_id" string="Department" context="{'show_department_short': True}"/>
</xpath>
<xpath expr="//filter[@name='inactive']" position="after">
<separator/>
<filter string="Branch" name="group_branch" context="{'group_by':'branch_name', 'show_branch_short': True}"/>
<filter string="Department" name="group_department" context="{'group_by':'department_id', 'show_department_short': True}"/>
</xpath>
</field>
</record>