[16.0][ADD] maintenance_request_checklist: Execution checklist for maintenance requests#563
Open
CristianoMafraJunior wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Escodoo SO571-56
Summary
Adds a new module maintenance_request_checklist that introduces a step-by-step execution checklist to maintenance requests.
Technicians can confirm each step of a maintenance procedure directly from the request form, supporting traceability requirements for ISO 9000 and similar quality management standards.
Changes
New model — maintenance.request.checklist.line
Fields: sequence (ordering handle), name (step description), is_done (checkbox), done_by (read-only, auto-filled), done_date (read-only, auto-filled), notes.
write() override ensures that when is_done is set to True, done_by and done_date are captured server-side automatically. Unchecking the step clears both fields. This prevents audit data from being manually altered via the UI.
maintenance.request extension
checklist_ids — One2many to the checklist lines.
checklist_total / checklist_done — stored computed fields showing total and completed steps, recomputed whenever is_done changes on any line.
View
A Checklist tab is inserted between the Instructions and Description pages in the maintenance request form.
The tab shows a progress summary (steps done / total) and an editable list with drag-and-drop sequencing, row highlighting (green when done, muted when pending), and columns for all relevant fields.