Skip to content

Commit

Permalink
[13.0][IMP] add sequential and handle widget to inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
RPSJR committed Oct 21, 2024
1 parent 48335d2 commit 865b563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class FleetVehicleInspectionLine(models.Model):

result_description = fields.Char()

sequence = fields.Integer(string="Sequence", default=10)

state = fields.Selection(
[("draft", "Draft"), ("confirmed", "Confirmed"), ("cancel", "Cancelled")],
related="inspection_id.state",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
context="{'default_inspection_id': active_id}"
>
<tree string="Inspection Line">
<field name="sequence" widget="handle" />
<field name="state" invisible="1" />
<field name="inspection_item_id" />
<field name="inspection_item_instruction" />
Expand Down

0 comments on commit 865b563

Please sign in to comment.