Commit Graph

1240 Commits

Author SHA1 Message Date
esam 5c24cc29bd revert 2026-01-12 17:54:06 -05:00
esam 8fd70a5197 sudo 2026-01-12 10:41:33 -05:00
bakry 637ef6c705
Merge pull request #6045 from expsa/bakry_hr
add constrain and field annual permission
2026-01-07 15:07:40 +03:00
Bakry dd2e746507 add constrain and field annual permission 2026-01-07 15:06:14 +03:00
esam 9afc9dacb6 com 2026-01-06 17:19:34 -05:00
Bakry dd525f3a81 add smart button Rewards and Raises in employee 2026-01-06 14:39:31 +03:00
Bakry 2b973f411d fix 2025-12-31 09:46:57 +03:00
Bakry 5e34f0dd17 fix 2025-12-31 09:41:48 +03:00
Bakry f769b1be97 fix 2025-12-30 16:11:19 +03:00
Bakry 8375fd6dec fix 2025-12-30 16:03:28 +03:00
Bakry ee9f586322 field other attendance_duration 2025-12-30 15:54:37 +03:00
Bakry 6670d8c851 field attendance_duration 2025-12-28 17:46:18 +03:00
Bakry 1bf572947b field attendance_duration 2025-12-28 17:09:47 +03:00
Bakry 8511f6ec7c fix Validates overtime hours workdays and weekend days 2025-12-25 15:50:30 +03:00
Bakry 5bbaa9f779 fix Validates overtime hours workdays and weekend days 2025-12-25 13:19:03 +03:00
mohammed-alkhazrji 941670b481 fix bug 2025-12-23 23:11:12 +03:00
mohammed-alkhazrji e4dd586cef fix bug 2025-12-23 23:04:54 +03:00
bakry cb2001662d
Merge pull request #5793 from expsa/bakry_hr
fix holiday
2025-12-23 13:06:41 +03:00
Bakry e05a9dd62c fix holiday 2025-12-23 12:52:57 +03:00
kchyounes19 2b1ca19234
Merge pull request #5780 from expsa/younes_dev_odex25_hr
[FIX] attendances: FIX bug
2025-12-21 15:24:29 +01:00
younes 27f093bcb7 [FIX] attendances: FIX bug 2025-12-21 15:23:00 +01:00
kchyounes19 d6ad4c2883
Merge pull request #5777 from expsa/youn_dev_odex25_hrr
[FIX] attendances: FIX bug
2025-12-21 15:09:26 +01:00
younes 7f2833113d [FIX] attendances: FIX bug 2025-12-21 15:08:26 +01:00
bakry 665d6e8c8a
Merge pull request #5775 from expsa/bakry_hr
Bakry hr
2025-12-21 17:03:52 +03:00
Bakry 9eefc082cd fix holiday 2025-12-21 17:01:48 +03:00
younes 7245f7b5cc [FIX] attendances: FIX bug 2025-12-21 14:57:39 +01:00
Abdurrahman Saber 58179000b9 [REF] hr_government_relations: revert accouting approval code & keep bug fixes 2025-12-15 20:26:20 +04:00
esam 81efc18f0c currnt 2025-12-04 14:00:59 -05:00
esam 81d628b0f6 currnt 2025-12-04 13:30:21 -05:00
Bakry 0da086450d fix 2025-12-02 12:34:28 +03:00
younes a71aadfb72 [FIX] attendances: FIX bug 2025-11-23 15:26:07 +01:00
kchyounes19 bae49f7d5f
Merge pull request #5460 from expsa/jj_dev_odex25_hr
[REV] exp_official_mission: revert old code
2025-11-19 15:12:59 +01:00
younes 7addc8a742 [REV] exp_official_mission: revert old code 2025-11-19 15:11:37 +01:00
kchyounes19 21b5eee10f
Merge pull request #5455 from expsa/kk_dev_odex25_hr
[FIX] attendances: FIX bug
2025-11-19 14:05:03 +01:00
younes 90ed3b025b [FIX] attendances: FIX bug 2025-11-19 14:03:13 +01:00
Abdurrahman Saber 74dd613695 [FIX] exp_official_mission: write new records with the new sequence 2025-11-19 15:32:38 +04:00
Abdurrahman Saber ffb831c195 [FIX] hr_contract_custom, exp_official_mission: give account manager access to contracts, check record field value after creation 2025-11-19 15:14:47 +04:00
younes 97ebed566b [FIX] attendances: FIX bug 2025-11-17 15:16:19 +01:00
Bakry deb5a6f74b fix leave status in employee 2025-11-17 16:13:32 +03:00
younes 4bb4a550ff [FIX] attendances: fix bug 2025-11-16 13:18:52 +01:00
Mazen Abdo 4fc9cb3b79 Include “Other” Allowance Type in Employee Termination Report 2025-11-16 09:06:52 +02:00
Abdurrahman Saber 57e31ba0e9 [IMP] hr_government_relations: open cost field for governement relations 2025-11-15 11:31:51 +02:00
maltayyar2 6510ca14e4 fix: correct department and branch name display logic
- Add is_branch check to prevent name duplication
- Branches (is_branch=true) show name only
- Departments (is_branch=false) show 'name - branch' when branch exists
- Fix display_name property with same logic
- Prevent cases like 'فرع الافلاج - فرع الافلاج'

Examples:
- Branch: 'فرع الجنوب' (name only)
- Department: 'أجهزة كهربائية - فرع الجنوب' (with branch)
- Department: 'إدارة التسويق' (no branch)

Synced with latest dev_odex25_hr on Thu Nov 13 23:35:00 +03 2025
2025-11-13 23:35:01 +03:00
maltayyar2 59935dfd2d feat: enhance department name display with flexible context support
- Add context check for 'show_full_path' in name_get method
- Support both short names (default) and full path (optional)
- Enhanced display_name property with same flexibility
- Maintain backward compatibility with existing fields

Usage:
- Default: <field name="department_id"/> (short name)
- Full path: <field name="department_id" context="{'show_full_path': True}"/>

Synced with latest dev_odex25_hr on Thu Nov 13 22:22:02 +03 2025
2025-11-13 22:22:02 +03:00
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 67d3535274 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
2025-11-13 18:55:10 +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
Mazen Abdo 8a7a3755cd Modified employee creation to assign a valid emp_no if missing or '/' 2025-11-13 14:12:41 +02:00
Mazen Abdo b3a92a1543 Modified employee creation to assign a valid emp_no if missing or '/' 2025-11-13 14:11:13 +02:00