智能工厂空模型处理

This commit is contained in:
liaodanlong
2024-11-25 11:40:01 +08:00
parent c5ac62060d
commit 84ebce0786
4 changed files with 13 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ class ReSaleOrder(models.Model):
product.materials_id.name),
'price_unit': product.list_price,
'product_uom_qty': item['number'],
'model_glb_file': base64.b64decode(item['model_file']),
'model_glb_file': base64.b64decode(item['model_file']) if item['model_file'] else None,
'remark': item.get('remark'),
'embryo_redundancy_id': item.get('embryo_redundancy_id'),
'manual_quotation': item.get('manual_quotation')