Accept Merge Request #1775: (feature/质检单优化_1 -> develop)
Merge Request: 优化工单的质量检查跳转按钮 Created By: @禹翔辉 Reviewed By: @马广威 Approved By: @马广威 Accepted By: @禹翔辉 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1775
This commit is contained in:
@@ -19,7 +19,10 @@ class ResMrpWorkOrder(models.Model):
|
|||||||
mw.check_ids_state = 'none'
|
mw.check_ids_state = 'none'
|
||||||
|
|
||||||
def action_open_quality_check_work_sf(self):
|
def action_open_quality_check_work_sf(self):
|
||||||
action = self.env["ir.actions.actions"]._for_xml_id("quality_control.quality_check_action_picking")
|
return {
|
||||||
action['context'] = self.env.context.copy()
|
'res_model': 'quality.check',
|
||||||
action['domain'] = [('workorder_id', '=', self.id)]
|
'type': 'ir.actions.act_window',
|
||||||
return action
|
'name': '质量检查',
|
||||||
|
'domain': [('workorder_id', '=', self.id)],
|
||||||
|
'view_mode': 'tree,form',
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user