将寿命到期拆解创建的组装单添加到对应安全库存组装单列表
This commit is contained in:
@@ -1542,6 +1542,9 @@ class FunctionalToolDismantle(models.Model):
|
|||||||
'reason_for_applying': '刀具寿命到期'
|
'reason_for_applying': '刀具寿命到期'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# 将新的组装单更新到对应的功能刀具安全库存的组装单列表中
|
||||||
|
self.functional_tool_id.safe_inventory_id.sudo().sf_functional_tool_assembly_ids = [(4, assembly_id.id)]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'type': 'ir.actions.act_window',
|
'type': 'ir.actions.act_window',
|
||||||
'res_model': 'sf.functional.tool.assembly',
|
'res_model': 'sf.functional.tool.assembly',
|
||||||
|
|||||||
Reference in New Issue
Block a user