[IMP] mrp: changed duplicate field label in the same model

This commit is contained in:
Kinjal Mehta
2018-01-04 17:56:55 +05:30
parent 33e1105cec
commit e1628532d6
4 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -36,14 +36,14 @@ class MrpWorkcenter(models.Model):
workorder_count = fields.Integer('# Work Orders', compute='_compute_workorder_count')
workorder_ready_count = fields.Integer('# Read Work Orders', compute='_compute_workorder_count')
workorder_progress_count = fields.Integer('Total Running Orders', compute='_compute_workorder_count')
workorder_pending_count = fields.Integer('Total Running Orders', compute='_compute_workorder_count')
workorder_pending_count = fields.Integer('Total Pending Orders', compute='_compute_workorder_count')
workorder_late_count = fields.Integer('Total Late Orders', compute='_compute_workorder_count')
time_ids = fields.One2many('mrp.workcenter.productivity', 'workcenter_id', 'Time Logs')
working_state = fields.Selection([
('normal', 'Normal'),
('blocked', 'Blocked'),
('done', 'In Progress')], 'Status', compute="_compute_working_state", store=True)
('done', 'In Progress')], 'Workcenter Status', compute="_compute_working_state", store=True)
blocked_time = fields.Float(
'Blocked Time', compute='_compute_blocked_time',
help='Blocked hour(s) over the last month', digits=(16, 2))
-1
View File
@@ -113,7 +113,6 @@ class MrpWorkorder(models.Model):
final_lot_id = fields.Many2one(
'stock.production.lot', 'Lot/Serial Number', domain="[('product_id', '=', product_id)]",
states={'done': [('readonly', True)], 'cancel': [('readonly', True)]})
tracking = fields.Selection(related='production_id.product_id.tracking')
time_ids = fields.One2many(
'mrp.workcenter.productivity', 'workorder_id')
is_user_working = fields.Boolean(
+1 -1
View File
@@ -16,7 +16,7 @@ class ResConfigSettings(models.TransientModel):
module_mrp_workorder = fields.Boolean("Work Orders")
module_mrp_repair = fields.Boolean("Repair")
module_quality_control = fields.Boolean("Quality")
group_mrp_routings = fields.Boolean("Work Orders",
group_mrp_routings = fields.Boolean("Mrp",
implied_group='mrp.group_mrp_routings')
@api.model
@@ -17,7 +17,7 @@
<field name="module_mrp_workorder" invisible="1"/>
</div>
<div class="o_setting_right_pane">
<label for="group_mrp_routings"/>
<label for="group_mrp_routings" string="Work Orders"/>
<div class="text-muted">
Process operations at specific work centers based on the routing
</div>