1、完成 制造订单内外协调拨单质量检查不通过,点击跳转质量检查页面报错
This commit is contained in:
@@ -108,15 +108,11 @@ class StockPicking(models.Model):
|
||||
|
||||
def action_open_quality_check_picking(self):
|
||||
action = self.env["ir.actions.actions"]._for_xml_id("quality_control.quality_check_action_picking")
|
||||
action['context'] = self.env.context.copy()
|
||||
keys_to_remove = [key for key in action['context'] if key.startswith('default_')]
|
||||
for key in keys_to_remove:
|
||||
del action['context'][key]
|
||||
action['context'].update({
|
||||
action['context'] = {
|
||||
'search_default_picking_id': [self.id],
|
||||
'default_picking_id': self.id,
|
||||
'show_lots_text': self.show_lots_text,
|
||||
})
|
||||
}
|
||||
return action
|
||||
|
||||
def button_quality_alert(self):
|
||||
|
||||
Reference in New Issue
Block a user