fix: remove invalid department_id field from hr.department views

🚨 **Critical XML Fix**
Fixed ValidationError: الحقل department_id غير موجود في النموذج hr.department

## 🔧 **Problem Fixed**
- Removed invalid department_id field from hr.department form view
- Removed department_id field and grouping from hr.department search view
- hr.department cannot reference itself via department_id field

## 📁 **Files Modified**
- odex25_hr/hr_base/views/hr_base_view.xml: Removed invalid department_id references

##  **Impact**
- Fixes XML validation error during module upgrade
- Maintains proper model field relationships
- Allows successful hr_base module loading

## 🔗 **Related**
Fixes error in PR #5412 - Department display enhancement
This commit is contained in:
Mohamed Eltayar 2025-11-13 18:55:10 +03:00
parent bc5f17dcf3
commit 67d3535274
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>