1、完成 制造订单内外协调拨单质量检查不通过,点击跳转质量检查页面报错

This commit is contained in:
yuxianghui
2025-03-13 15:32:12 +08:00
parent 2568e63712
commit 359eae14cc
2 changed files with 2 additions and 7 deletions

View File

@@ -190,7 +190,6 @@ class QualityCheck(models.Model):
# doubly linked chain for tablet view navigation
next_check_id = fields.Many2one('quality.check')
previous_check_id = fields.Many2one('quality.check')
# is_produced = fields.Boolean(string="Has Been Produced")
# For components registration
move_id = fields.Many2one(

View File

@@ -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):