1、完成 制造订单内外协调拨单质量检查不通过,点击跳转质量检查页面报错
This commit is contained in:
@@ -190,7 +190,6 @@ class QualityCheck(models.Model):
|
|||||||
# doubly linked chain for tablet view navigation
|
# doubly linked chain for tablet view navigation
|
||||||
next_check_id = fields.Many2one('quality.check')
|
next_check_id = fields.Many2one('quality.check')
|
||||||
previous_check_id = fields.Many2one('quality.check')
|
previous_check_id = fields.Many2one('quality.check')
|
||||||
# is_produced = fields.Boolean(string="Has Been Produced")
|
|
||||||
|
|
||||||
# For components registration
|
# For components registration
|
||||||
move_id = fields.Many2one(
|
move_id = fields.Many2one(
|
||||||
|
|||||||
@@ -108,15 +108,11 @@ class StockPicking(models.Model):
|
|||||||
|
|
||||||
def action_open_quality_check_picking(self):
|
def action_open_quality_check_picking(self):
|
||||||
action = self.env["ir.actions.actions"]._for_xml_id("quality_control.quality_check_action_picking")
|
action = self.env["ir.actions.actions"]._for_xml_id("quality_control.quality_check_action_picking")
|
||||||
action['context'] = self.env.context.copy()
|
action['context'] = {
|
||||||
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({
|
|
||||||
'search_default_picking_id': [self.id],
|
'search_default_picking_id': [self.id],
|
||||||
'default_picking_id': self.id,
|
'default_picking_id': self.id,
|
||||||
'show_lots_text': self.show_lots_text,
|
'show_lots_text': self.show_lots_text,
|
||||||
})
|
}
|
||||||
return action
|
return action
|
||||||
|
|
||||||
def button_quality_alert(self):
|
def button_quality_alert(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user