changes
This commit is contained in:
@@ -148,22 +148,17 @@ class IrActionsActWindow(models.Model):
|
||||
|
||||
@api.model
|
||||
def _fp_workstation_action_for_layout(self, company):
|
||||
"""Single source of truth: which Shop Floor surface is active on
|
||||
this DB?
|
||||
"""Resolve the Shop Floor surface for technicians + shop managers.
|
||||
|
||||
``ir.config_parameter['fusion_plating_shopfloor.layout']`` is the
|
||||
feature flag. Flipping it instantly retargets every Technician /
|
||||
Shop Manager landing on next page load.
|
||||
Returns ``action_fp_plant_kanban`` (the 2026-05-23 plant view).
|
||||
The legacy ``fp_shopfloor_landing`` component was retired
|
||||
2026-05-25 (one feature ported across — the inline QR scanner).
|
||||
The ``fusion_plating_shopfloor.layout`` ir.config_parameter
|
||||
survives orphaned for one release cycle so we can ship a
|
||||
settings-UI cleanup separately; flipping it has no effect.
|
||||
"""
|
||||
param = self.env['ir.config_parameter'].sudo().get_param(
|
||||
'fusion_plating_shopfloor.layout', 'v2')
|
||||
if param == 'v2':
|
||||
return self.env.ref(
|
||||
'fusion_plating_shopfloor.action_fp_plant_kanban',
|
||||
raise_if_not_found=False,
|
||||
)
|
||||
return self.env.ref(
|
||||
'fusion_plating_shopfloor.action_fp_shopfloor_landing',
|
||||
'fusion_plating_shopfloor.action_fp_plant_kanban',
|
||||
raise_if_not_found=False,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user