fix: rename ambiguous 'Work Center' / 'Work Centres' menus
Two distinct entities were both labelled 'Work Centre' (US/UK spelling
the only differentiator — confusing). Renamed by purpose, model IDs
unchanged so all 12+9 existing cross-refs keep working:
fusion.plating.work.center → 'Production Line'
Physical shop-layout grouping that owns tanks. Examples: 'Line 1 —
EN', 'Anodize Line', 'Prep Bay'. Has tank_ids (O2M),
supported_process_ids (M2M), capacity_per_day. The thing tanks live
in.
fp.work.centre → 'Routing Station'
Per-job-step routing entity (post-Sub-11 mrp.workcenter replacement).
Has 'kind' selection (wet_line / bake / mask / rack / inspect),
cost_per_hour for fp.job.step rollup, default_bath_id +
default_tank_id for release-ready validation. The thing a job step
routes through.
Conceptually a Production Line CONTAINS many Routing Stations (e.g.
'EN Line' production line has wet-line, bake, inspect routing
stations on it).
Updated:
- _description on both models
- string= on the name fields
- list/form/search view strings
- act_window names ('Production Lines' / 'Routing Stations')
- menu items in fp_menu.xml + fp_jobs_menu.xml
- doc comments in both model files explaining the distinction
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,18 +7,20 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class FpWorkCenter(models.Model):
|
||||
"""A production line or station inside a facility.
|
||||
"""A physical production line inside a facility.
|
||||
|
||||
Examples: "Line 1 - EN", "Anodize Line", "Prep Bay", "Bake Station",
|
||||
"Inspection Booth", "Shipping Dock". Work centers group tanks and
|
||||
provide scheduling capacity.
|
||||
Examples: "Line 1 — EN", "Anodize Line", "Prep Bay", "Bake Station",
|
||||
"Inspection Booth", "Shipping Dock". Production lines group tanks
|
||||
and provide daily-capacity scheduling. This is the SHOP-LAYOUT
|
||||
entity — distinct from `fp.work.centre` which is the per-job-step
|
||||
routing station with cost-per-hour rollup.
|
||||
"""
|
||||
_name = 'fusion.plating.work.center'
|
||||
_description = 'Fusion Plating — Work Center'
|
||||
_description = 'Fusion Plating — Production Line'
|
||||
_order = 'facility_id, sequence, name'
|
||||
|
||||
name = fields.Char(
|
||||
string='Work Center',
|
||||
string='Production Line',
|
||||
required=True,
|
||||
)
|
||||
code = fields.Char(
|
||||
|
||||
@@ -13,11 +13,23 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class FpWorkCentre(models.Model):
|
||||
"""Routing station for a job step — replaces mrp.workcenter for
|
||||
plating after the Sub 11 MRP cutout.
|
||||
|
||||
Each routing station has a `kind` (wet_line / bake / mask / rack /
|
||||
inspect / other) that drives release-ready validation on
|
||||
`fp.job.step` (e.g. wet_line requires bath+tank to be set before
|
||||
the step can start). Costable via `cost_per_hour`.
|
||||
|
||||
Distinct from `fusion.plating.work.center` (Production Line),
|
||||
which is the physical shop-layout grouping that owns tanks.
|
||||
A Production Line typically contains many Routing Stations.
|
||||
"""
|
||||
_name = 'fp.work.centre'
|
||||
_description = 'Plating Work Centre'
|
||||
_description = 'Plating Routing Station'
|
||||
_order = 'sequence, code, name'
|
||||
|
||||
name = fields.Char(required=True)
|
||||
name = fields.Char(string='Routing Station', required=True)
|
||||
code = fields.Char(required=True, help='Short code used on stickers and reports.')
|
||||
sequence = fields.Integer(default=10)
|
||||
facility_id = fields.Many2one(
|
||||
|
||||
Reference in New Issue
Block a user