Add production prefix to label of cost price fields for production

This commit is contained in:
Cédric Krier
2026-09-18 10:54:09 +02:00
parent c83e497296
commit 3d29395a19
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ class Cron(metaclass=PoolMeta):
def __setup__(cls):
super().__setup__()
cls.method.selection.extend([
('production|set_cost_from_moves', "Set Cost from Moves"),
('production|set_cost_from_moves',
"Set Cost from Production Moves"),
('production|reschedule', "Reschedule Productions"),
])
+1 -1
View File
@@ -77,7 +77,7 @@ class Move(metaclass=PoolMeta):
depends=['production_input', 'production_output']),
'on_change_with_production', searcher='search_production')
production_cost_price_updated = fields.Boolean(
"Cost Price Updated", readonly=True,
"Production Cost Price Updated", readonly=True,
states={
'invisible': ~Eval('production_input') & (Eval('state') == 'done'),
})