- Add string="Requested by Purchase" for by_purchase field
- Add string="Use Analytic Account" for use_analytic field
- Maintain original field order and structure
- Preserve context attributes for department_id and branch_id
- All Boolean fields now display with proper labels
Synced with latest dev_odex25_purchase on 2025-11-20
- Fix Purchase Order form layout - organize fields in proper groups
- Add separators and groups for Request Information and Status sections
- Remove duplicate request_id field from origin replacement
- Remove unnecessary invisible="0" attribute from department_id
- Fix typo: colsapn to colspan in committee type form
- Add missing Arabic translations for group headers
- Improve field organization and visual layout
Synced with latest dev_odex25_purchase on 2025-11-19
- Reorganize Purchase Request form with logical field grouping
- Add separators for Request Information and Vendor sections
- Implement radio widgets and proper button styling
- Add icons to smart buttons and notebook pages
- Apply decoration patterns to tree views
- Enhance Purchase Requisition form organization
- Add Purchase Configuration and Department sections
- Standardize button classes (btn-primary, btn-secondary)
- Include proper placeholders and labels
Synced with latest dev_odex25_purchase on Fri Nov 14 08:38:08 +03 2025
🔧 **Key Enhancements:**
- Added show_department_short context to all department_id fields
- Enhanced form, tree, and search views with proper context
- Fixed translation consistency (Department = القسم)
- Unified department display across purchase module
📁 **Files Modified:**
- odex25_purchase/purchase_requisition_custom/views/purchase_request.xml: Added context to department fields
- odex25_purchase/purchase_requisition_custom/views/purchase_requisition_custom.xml: Enhanced department display
- odex25_purchase/purchase_requisition_custom/i18n/ar_001.po: Fixed Department translation consistency
✅ **Impact:**
- Department names now display without hierarchical path in purchase views
- Consistent short name display across purchase request, order, and requisition views
- Better UX with unified Arabic translations
- Works seamlessly with HR module's name_get enhancement
🔗 **Dependencies:**
Requires HR module PR #5412 for full functionality
Synced with latest dev_odex25_purchase on Thu Nov 13 18:27:23 +03 2025
- Removed invalid XPath targeting non-existent department_id field
- Added branch_id field after partner_id which exists in the base tree view
- Fixes XML validation error during module upgrade
Files modified:
- odex25_purchase/purchase_requisition_custom/views/purchase_requisition_custom.xml
Error fixed: XPath expr='//field[@name='department_id']' not found in base view
- Removed branch_short_name field that references non-existent field
- This field was causing KeyError during module loading
- Resolves registry setup error in purchase_order model
Files modified:
- odex25_purchase/purchase_requisition_custom/models/purchase_order.py
Error fixed: KeyError: 'branch_short_name' during field setup
- Added branch_id field to purchase.request model with auto-computation
- Added branch_id field to purchase.order model with auto-computation
- Updated purchase request form, tree, and search views with branch field
- Updated purchase order form, tree, and search views with branch field
- Added Arabic translations for branch field
- Branch propagates from request to purchase order during creation
- Uses context for short branch name display
Files modified with correct paths:
- odex25_purchase/purchase_requisition_custom/models/purchase_request.py
- odex25_purchase/purchase_requisition_custom/models/purchase_order.py
- odex25_purchase/purchase_requisition_custom/views/purchase_request.xml
- odex25_purchase/purchase_requisition_custom/views/purchase_requisition_custom.xml
- odex25_purchase/purchase_requisition_custom/i18n/ar_001.po
Synced with latest dev_odex25_purchase on Thu Nov 13 14:50:06 +03 2025
- Added branch_id field to purchase.request model with auto-computation
- Added branch_id field to purchase.order model with auto-computation
- Updated purchase request form, tree, and search views with branch field
- Updated purchase order form, tree, and search views with branch field
- Added Arabic translations for branch field
- Branch propagates from request to purchase order during creation
- Uses context for short branch name display
Synced with latest dev_odex25_purchase on Thu Nov 13 12:45:38 +03 2025
- Add branch_id computed field to purchase.request model
- Auto-populate branch from employee department
- Add branch field to form view (readonly)
- Add branch field to tree and search views
- Add branch group by filter in search view
- Add Arabic translation for branch field
Synced with latest dev_odex25_purchase on Thu Nov 13 10:46:18 +03 2025