重写sf的销售订单生成制造订单的方法,该方法内,需让制造订单和工单的数据入数据库,以便生成表面外协工艺相关的外协出入库单及关联的库存(stock.move)记录

This commit is contained in:
jinling.yang
2023-04-18 17:28:18 +08:00
parent a5c707bf43
commit 5a639d6f55

View File

@@ -36,6 +36,10 @@ class StatusChange(models.Model):
logging.info('函数已经执行=============4')
self.with_context(context)._action_confirm()
# self.env.cr.commit()
print(self.mrp_production_ids)
process_parameter_workorder = self.env['mrp.workorder'].search(
[('surface_technics_parameters_id', '!=', False), ('production_id', '=', 58)])
if self.env.user.has_group('sale.group_auto_done_setting'):
logging.info('函数已经执行=============5')
self.action_done()