diff --git a/sf_dlm/data/product_data.xml b/sf_dlm/data/product_data.xml index 6aa4cf83..7338ea7f 100644 --- a/sf_dlm/data/product_data.xml +++ b/sf_dlm/data/product_data.xml @@ -1,6 +1,6 @@ - + CNC加工产品模板 @@ -10,7 +10,7 @@ - false + False @@ -27,7 +27,7 @@ - false + False @@ -39,7 +39,7 @@ - false + False @@ -51,7 +51,7 @@ - false + False diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 70970d16..4d6e2e0a 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -243,7 +243,8 @@ class ResMrpWorkOrder(models.Model): 'machining_precision': cnc.product_id.model_machining_precision, 'embryo_long': cnc.product_id.bom_ids.bom_line_ids.product_id.length, 'embryo_height': cnc.product_id.bom_ids.bom_line_ids.product_id.height, - 'embryo_width': cnc.product_id.bom_ids.bom_line_ids.product_id.width + 'embryo_width': cnc.product_id.bom_ids.bom_line_ids.product_id.width, + 'order_no': cnc.production_id.origin # 'factory_code': self.env.user.company_id.partner_id. } logging.info('res:%s' % res)