新增根据模型类型计算出产品的胚料尺寸

This commit is contained in:
jinling.yang
2022-10-31 17:34:44 +08:00
parent 002653957e
commit 7067b29735
6 changed files with 73 additions and 53 deletions

View File

@@ -42,7 +42,6 @@ class MrpProduction(models.Model):
def _create_workorder(self):
for production in self:
print(production.product_id.model_type_id)
if not production.bom_id or not production.product_id:
continue
workorders_values = []