优化工单的质量检查跳转按钮
This commit is contained in:
@@ -19,7 +19,10 @@ class ResMrpWorkOrder(models.Model):
|
||||
mw.check_ids_state = 'none'
|
||||
|
||||
def action_open_quality_check_work_sf(self):
|
||||
action = self.env["ir.actions.actions"]._for_xml_id("quality_control.quality_check_action_picking")
|
||||
action['context'] = self.env.context.copy()
|
||||
action['domain'] = [('workorder_id', '=', self.id)]
|
||||
return action
|
||||
return {
|
||||
'res_model': 'quality.check',
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': '质量检查',
|
||||
'domain': [('workorder_id', '=', self.id)],
|
||||
'view_mode': 'tree,form',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user