changes
This commit is contained in:
@@ -25,8 +25,14 @@
|
||||
class="btn-secondary"
|
||||
icon="fa-sitemap"
|
||||
invisible="state == 'draft'"/>
|
||||
<button name="action_open_move_wizard" type="object"
|
||||
string="Move to Next Step"
|
||||
<!-- Steelhead-style "Finish & Next": one click finishes
|
||||
whatever's running and auto-starts the next pending
|
||||
step. Falls back to starting the first step if
|
||||
nothing is running yet. The classic Move wizard is
|
||||
still available via the per-row Move button (used
|
||||
for cross-station moves and rework / scrap). -->
|
||||
<button name="action_finish_current_step" type="object"
|
||||
string="Finish & Next"
|
||||
class="btn-primary"
|
||||
icon="fa-arrow-right"
|
||||
invisible="state not in ('confirmed', 'in_progress')"/>
|
||||
@@ -42,6 +48,28 @@
|
||||
invisible="state in ('draft', 'cancelled')"/>
|
||||
</xpath>
|
||||
|
||||
<!-- Surface part / coating / recipe on the header so the
|
||||
floor knows WHAT they're plating without diving into
|
||||
Source. The "Reference Product" line in core is just
|
||||
the FP-SERVICE stub from the SO — relabel it so it
|
||||
doesn't compete with the real part identification. -->
|
||||
<xpath expr="//field[@name='product_id']" position="attributes">
|
||||
<attribute name="string">Service Product</attribute>
|
||||
<attribute name="invisible">part_catalog_id</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='product_id']" position="after">
|
||||
<field name="part_catalog_id" string="Part"/>
|
||||
<field name="coating_config_id" string="Coating"/>
|
||||
<field name="recipe_id" string="Process Recipe"/>
|
||||
</xpath>
|
||||
<!-- Show qty completed alongside total so the partial-qty
|
||||
picture is visible at a glance without opening Move Log. -->
|
||||
<xpath expr="//field[@name='qty']" position="after">
|
||||
<field name="qty_done" string="Qty Done"/>
|
||||
<field name="qty_scrapped" string="Qty Scrapped"
|
||||
invisible="not qty_scrapped"/>
|
||||
</xpath>
|
||||
|
||||
<!-- Replace the bare-bones Steps list with the action-rich
|
||||
manager view. Per-row buttons mirror what an operator
|
||||
sees on the tablet; Running Min ticks on every refresh
|
||||
@@ -67,6 +95,14 @@
|
||||
<field name="duration_expected" optional="show"/>
|
||||
<field name="duration_running_minutes" string="Running Min" optional="show"/>
|
||||
<field name="duration_actual" optional="show"/>
|
||||
<!-- Live qty currently parked at this step. Hits
|
||||
zero once everything has moved on; >0 means
|
||||
the floor still has parts to process here. -->
|
||||
<field name="qty_at_step" string="Qty Here" optional="show"/>
|
||||
<!-- Primary action: state-aware. Pending/ready → Start,
|
||||
in_progress → Finish & Next (auto-advance like
|
||||
Steelhead), paused → Resume. Done / skipped /
|
||||
cancelled rows show no primary. -->
|
||||
<button name="button_start" type="object"
|
||||
string="Start" icon="fa-play"
|
||||
class="btn-link text-success"
|
||||
@@ -75,26 +111,32 @@
|
||||
string="Resume" icon="fa-play-circle"
|
||||
class="btn-link text-success"
|
||||
invisible="state != 'paused'"/>
|
||||
<button name="action_finish_and_advance" type="object"
|
||||
string="Finish & Next" icon="fa-check-circle"
|
||||
class="btn-link text-primary"
|
||||
invisible="state != 'in_progress'"/>
|
||||
|
||||
<!-- Secondary actions — small icons only. Pause is
|
||||
only relevant on a running step; Record Inputs
|
||||
stays available so operators can capture
|
||||
measurements without finishing the step;
|
||||
Skip + Move (cross-station) tucked together. -->
|
||||
<button name="button_pause" type="object"
|
||||
string="Pause" icon="fa-pause"
|
||||
class="btn-link text-warning"
|
||||
invisible="state != 'in_progress'"/>
|
||||
<button name="button_finish" type="object"
|
||||
string="Finish" icon="fa-check"
|
||||
class="btn-link text-primary"
|
||||
invisible="state != 'in_progress'"/>
|
||||
<button name="action_open_move_wizard" type="object"
|
||||
string="Move" icon="fa-arrow-right"
|
||||
class="btn-link"
|
||||
invisible="state in ('done', 'cancelled', 'skipped')"/>
|
||||
<button name="action_open_input_wizard" type="object"
|
||||
string="Record Inputs" icon="fa-pencil-square-o"
|
||||
string="Record" icon="fa-pencil-square-o"
|
||||
class="btn-link"
|
||||
invisible="state in ('cancelled', 'skipped')"/>
|
||||
<button name="button_skip" type="object"
|
||||
string="Skip" icon="fa-step-forward"
|
||||
class="btn-link text-muted"
|
||||
invisible="state not in ('pending', 'ready')"/>
|
||||
<button name="action_open_move_wizard" type="object"
|
||||
string="Move…" icon="fa-exchange"
|
||||
class="btn-link text-muted"
|
||||
invisible="state in ('done', 'cancelled', 'skipped', 'pending')"/>
|
||||
</list>
|
||||
</field>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user