fusion_plating: change icon from Char to Selection dropdown (v19.0.2.0.5)
Icon field is now a selection with 24 curated plating icons. Users pick from a dropdown with descriptive labels (e.g. "Fire / Bake", "Diamond / Plating") instead of typing FA class codes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -104,10 +104,35 @@ class FpProcessNode(models.Model):
|
||||
string='Internal Notes',
|
||||
help='Internal notes (not shown to customers).',
|
||||
)
|
||||
icon = fields.Char(
|
||||
icon = fields.Selection(
|
||||
[
|
||||
('fa-flask', 'Flask / Chemistry'),
|
||||
('fa-industry', 'Industry / Line'),
|
||||
('fa-sitemap', 'Sitemap / Process'),
|
||||
('fa-wrench', 'Wrench / Operation'),
|
||||
('fa-cog', 'Gear / General'),
|
||||
('fa-cogs', 'Gears / System'),
|
||||
('fa-paint-brush', 'Paint / Masking'),
|
||||
('fa-eraser', 'Eraser / De-Masking'),
|
||||
('fa-th', 'Grid / Racking'),
|
||||
('fa-fire', 'Fire / Bake'),
|
||||
('fa-bolt', 'Bolt / Electric'),
|
||||
('fa-diamond', 'Diamond / Plating'),
|
||||
('fa-tint', 'Tint / Rinse'),
|
||||
('fa-shower', 'Shower / Clean'),
|
||||
('fa-bullseye', 'Target / Blast'),
|
||||
('fa-search', 'Search / Inspect'),
|
||||
('fa-check-circle', 'Check / Approve'),
|
||||
('fa-clock-o', 'Clock / Wait'),
|
||||
('fa-sun-o', 'Sun / Dry'),
|
||||
('fa-thermometer-half', 'Temp / Heat'),
|
||||
('fa-eye', 'Eye / Visual'),
|
||||
('fa-hand-paper-o', 'Hand / Manual'),
|
||||
('fa-cube', 'Cube / Part'),
|
||||
('fa-shield', 'Shield / Protect'),
|
||||
],
|
||||
string='Icon',
|
||||
default='fa-cog',
|
||||
help='Font Awesome icon class.',
|
||||
)
|
||||
color = fields.Integer(
|
||||
string='Colour',
|
||||
|
||||
Reference in New Issue
Block a user