diff --git a/sf_manufacturing/controllers/controllers.py b/sf_manufacturing/controllers/controllers.py index 3b2a8682..805a1a8f 100644 --- a/sf_manufacturing/controllers/controllers.py +++ b/sf_manufacturing/controllers/controllers.py @@ -232,7 +232,7 @@ class Manufacturing_Connect(http.Controller): production_obj = request.env['mrp.production'].sudo().search([('name', '=', production_id)]) if production_obj: production_obj.sudo().work_order_state = '已完成' - production_obj.write({'state': 'completed'}) + production_obj.write({'state': 'done'}) # request.env['sale.order'].sudo().search( # [('name', '=', production_obj.origin)]).write({'schedule_status': 'to deliver'})