Commit Graph

13 Commits

Author SHA1 Message Date
maltayyar2 e3ec99f527 feat: simplify department name display to show short names
- Remove complex logic from name_get method
- Simplify display_name property
- Show department.name directly for all departments/branches
- Remove dependency on context variables

Synced with latest dev_odex25_hr on Thu Nov 13 21:45:35 +03 2025
2025-11-13 21:45:36 +03:00
Mohamed Eltayar e290c7fd3c feat: enhance department display with short name support
🔧 **Key Improvements:**
- Extended name_get to support show_department_short context
- Added display_name property override for consistent short display
- Enhanced tree view with department context for clean display
- Fixed translation consistency (Department = القسم)

📁 **Files Modified:**
- odex25_hr/hr_base/models/hr_department.py: Enhanced name_get and added display_name property
- odex25_hr/hr_base/views/hr_base_view.xml: Added context to department fields in all views
- odex25_hr/hr_base/i18n/ar_001.po: Unified Department translation to القسم

 **Impact:**
- Department names now display without hierarchical path when context is set
- Consistent short name display across all HR views (form, tree, search)
- Unified Arabic translation for better UX
- Maintains backward compatibility with existing functionality

Synced with latest dev_odex25_hr on Thu Nov 13 18:25:53 +03 2025
2025-11-13 18:25:54 +03:00
Mohamed Eltayar 5b10bd7065 fix: ensure branch departments always display short names
- Modified name_get method to prioritize is_branch flag
- Branch departments (is_branch=True) now always show name only
- Maintains context support for other cases
- Fixes issue where branch names showed full hierarchical path
- Ensures consistent short name display across all related fields

Files modified:
- odex25_hr/hr_base/models/hr_department.py

This resolves the issue where branch names appeared with full path
even when context was provided for short display.
2025-11-13 15:33:55 +03:00
Mohamed Eltayar 4830170638 feat: enhance HR branch display with correct paths
- Modified name_get method in hr.department for short branch display
- Added context support for show_branch_short and from_branch_field
- Updated HR views to use short branch name context
- Added branch field to department tree view with context
- Added branch field to department search view with groupby filter
- Added Arabic translations for branch field

Files modified with correct paths:
- odex25_hr/hr_base/models/hr_department.py
- odex25_hr/hr_base/views/hr_base_view.xml
- odex25_hr/hr_base/i18n/ar_001.po

Synced with latest dev_odex25_hr on Thu Nov 13 14:49:04 +03 2025
2025-11-13 14:49:04 +03:00
Bakry 5aaa8a7da8 fix gosi sanad 2025-02-13 11:22:31 +03:00
Bakry 2156bc09a1 fix department child_of 2024-10-13 13:37:42 +03:00
Bakry 5ec1e48aee remove followers from Department 2024-10-03 18:06:37 +03:00
Bakry f3fe075a26 fix branch name 2024-10-01 16:32:50 +03:00
Bakry 3b3bf62d83 fix group by branch 2024-09-18 13:06:30 +03:00
Bakry 8e0c5c8f30 fix 2024-08-15 16:19:12 +03:00
Bakry b94d05313b fix 2024-08-15 14:32:26 +03:00
Bakry a68edc2282 fix hr_department fields 2024-08-14 10:16:48 +03:00
expert 0be409eab9 Add odex25_hr 2024-06-24 14:09:02 +03:00