1.ftp文件路径修改为:/NC/以下

This commit is contained in:
jinling.yang
2024-04-16 16:22:26 +08:00
parent cc7a72d6f4
commit d777970a9b
10 changed files with 103 additions and 33 deletions

View File

@@ -146,7 +146,7 @@ class MrpProduction(models.Model):
'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,
'order_no': cnc.origin,
'model_order_no': cnc.product_id.default_code.rsplit(' -', 1)[0],
'model_order_no': '-'.join(cnc.product_id.default_code.split('-')[:4]),
'user': cnc.env.user.name,
'model_file': '' if not cnc.product_id.model_file else base64.b64encode(
cnc.product_id.model_file).decode('utf-8')