b2fd83dc51
- Ten "Makap - ..." role profiles map the PRD Section 3 roles (sales, prepress, planner, procurement, warehouse, operator, supervisor, QC/QA, finance, management) onto standard and Makap roles. Created only if missing, so desk edits survive migrate (M6). - New Machine Operator and Prepress roles. Operators can run Job Cards, label rolls and raise in-process inspections, but cannot plan or release. - Quality eligibility, disposition and concession fields move to permlevel 1: only Quality Manager / Concession Authority can set them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 lines
2.8 KiB
Python
54 lines
2.8 KiB
Python
app_name = "makap_backend"
|
|
app_title = "Makap Backend"
|
|
app_publisher = "Joseph njuki"
|
|
app_description = "ERP"
|
|
app_email = "josephnjuki833@gmail.com"
|
|
app_license = "mit"
|
|
|
|
# MAKAP Module 3 child-table registration
|
|
after_migrate = ["makap_backend.makap_backend.setup.ensure_makap_functional_roles", "makap_backend.makap_backend.setup.ensure_makap_object_permissions", "makap_backend.makap_backend.setup_module3.ensure_module3_child_tables", "makap_backend.makap_backend.setup_extensions.ensure_custom_fields", "makap_backend.makap_backend.setup_module8_dashboard.ensure_module8_number_cards", "makap_backend.makap_backend.setup_workspace_dashboard.ensure_workspace_number_cards", "makap_backend.makap_backend.workspace_setup.ensure_makap_workspace", "makap_backend.makap_backend.setup_module8_permissions.ensure_module8_role_permissions", "makap_backend.makap_backend.setup_roles.ensure_shopfloor_permissions", "makap_backend.makap_backend.setup_roles.ensure_makap_role_profiles", "makap_backend.makap_backend.portal_shortcut.ensure_portal_shortcut"]
|
|
|
|
# MAKAP cross-module server-side controls
|
|
doc_events = {
|
|
"Packaging Specification": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_packaging_specification",
|
|
},
|
|
"Quotation": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_quotation",
|
|
},
|
|
"Sales Order": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_sales_order",
|
|
},
|
|
"Work Order": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_work_order",
|
|
},
|
|
"Job Card": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_job_card",
|
|
},
|
|
"Quality Inspection": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_quality_inspection",
|
|
},
|
|
"Purchase Order": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_purchase_order",
|
|
},
|
|
"Delivery Note": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_delivery_note",
|
|
"on_cancel": "makap_backend.makap_backend.controls.validate_delivery_note_on_cancel",
|
|
},
|
|
"Sales Invoice": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_sales_invoice",
|
|
"on_submit": "makap_backend.makap_backend.controls.on_submit_or_cancel_sales_invoice",
|
|
"on_cancel": "makap_backend.makap_backend.controls.on_submit_or_cancel_sales_invoice",
|
|
},
|
|
"Payment Entry": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_payment_entry",
|
|
"on_submit": "makap_backend.makap_backend.controls.on_submit_or_cancel_payment_entry",
|
|
"on_cancel": "makap_backend.makap_backend.controls.on_submit_or_cancel_payment_entry",
|
|
},
|
|
"Purchase Invoice": {
|
|
"validate": "makap_backend.makap_backend.controls.validate_purchase_invoice",
|
|
},
|
|
}
|
|
|
|
app_logo_url = "/assets/makap_backend/images/makap-icon.png"
|