diff --git a/sf_bf_connect/models/process_status.py b/sf_bf_connect/models/process_status.py index e5f33a4d..3cc56751 100644 --- a/sf_bf_connect/models/process_status.py +++ b/sf_bf_connect/models/process_status.py @@ -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()