- 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