Commit Graph

1212 Commits

Author SHA1 Message Date
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
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
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
Mohamed Eltayar 6a2a93e0f6 fix: correct XPath selectors in HR department tree and search views
- Fixed tree view XPath from 'name' to 'display_name' (matches Odoo 14 standard)
- Fixed search view groupby filter position to use 'inactive' filter reference
- Ensures proper inheritance of hr.department views
- Resolves XML validation error during module upgrade

Files modified:
- odex25_hr/hr_base/views/hr_base_view.xml

Fixes XPath validation error in hr_department tree view inheritance
2025-11-13 14:58:29 +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
Mazen Abdo 50fc3b1e4d Update Accounting Manager Permissions to Create contract.advantage 2025-11-12 17:07:25 +02:00
younes b90ebf5e1b [IMP] employee_requests: skip no_quick_create 2025-11-11 09:15:10 +01:00
abdurrahman-saber 633bc97fb6
Merge pull request #5272 from expsa/JAZ-3842
[FIX] hr_base: model absolute path
2025-11-07 14:15:55 +02:00
Abdurrahman Saber 5596da7de3 [FIX] hr_base: model absolute path 2025-11-07 14:15:23 +02:00
abdurrahman-saber 21ac823535
Merge pull request #5271 from expsa/JAZ-3842
[FIX] hr_base: model absolute path
2025-11-07 13:58:33 +02:00
Abdurrahman Saber d20e64e88e [FIX] hr_base: model absolute path 2025-11-07 13:58:02 +02:00
abdurrahman-saber 878e165955
Merge pull request #5270 from expsa/JAZ-3842
[IMP][FIX] attendances, hr_base, *: adjust access rights for accounting manager
2025-11-07 13:53:22 +02:00
Abdurrahman Saber fc17283f90 [IMP][FIX] attendances, hr_base, *: adjust access rights for accounting manager 2025-11-07 13:52:23 +02:00
Mazen Abdo 9840355e2d fix 2025-11-06 10:41:38 +02:00
Mazen Abdo 64774e612b Adding modifications to the xlsx report 2025-11-06 08:49:17 +02:00
Abdurrahman Saber 58de5ac1a1 [FIX] attendances, employee_requests, exp_hr_appraisal, exp_official_mission, hr_contract_custom: use child_of operator correctly 2025-11-05 12:39:38 +02:00
Mazen Abdo c4726da640 fix secuirty files 2025-11-04 14:44:22 +02:00
eslamtalaat74 310719db9b security 2025-11-02 17:50:20 +02:00
eslamtalaat74 ccfeca24a6 security 2025-11-02 17:39:07 +02:00
eslamtalaat74 d34ea2e3fd security 2025-11-02 17:30:11 +02:00
Abdurrahman Saber 891bd1bac3 [IMP] hr_government_relations, exp_ticket_request: add accounting approva 2025-11-02 15:14:34 +02:00
Abdurrahman Saber 4267fbc5e6 Merge branch 'JAZ-3842' of exp:expsa/odex25-standard-modules into JAZ-3842 2025-11-02 15:05:21 +02:00
Abdurrahman Saber 34bccc0445 [IMP] hr_government_relations, exp_ticket_request: add accounting approva 2025-11-02 15:05:09 +02:00
Abdurrahman Saber 776336b0e2 [IMP] exp_official_mission: adjust approval process 2025-11-01 13:18:29 +02:00
Abdurrahman Saber d06e689491 [IMP] exp_official_mission: adjust approval process 2025-11-01 13:10:38 +02:00
Abdurrahman Saber bc5f38bc73 [IMP] exp_official_mission: adjust approval process 2025-11-01 12:55:17 +02:00
Abdurrahman Saber 8d9eb01e48 [IMP] exp_official_mission: adjust approval process 2025-11-01 12:43:33 +02:00
Abdurrahman Saber 59b4f60397 [IMP] exp_official_mission: adjust approval process 2025-11-01 12:30:47 +02:00
Mazen Abdo 06697fdcb0 Create new type of payroll bank type 2025-10-30 01:08:05 +03:00
Mazen Abdo f393f1614c Create new type of payroll bank type 2025-10-30 01:00:11 +03:00
younes d642ca61a0 [IMP] hr: Add signature in reports 2025-10-23 09:10:34 +01:00