1、产品的成品、制造订单、工单添加零件图号字段;

This commit is contained in:
yuxianghui
2024-06-06 14:38:10 +08:00
parent d213a2cf54
commit 002727070d
4 changed files with 5 additions and 2 deletions

View File

@@ -530,6 +530,7 @@ class ResProductMo(models.Model):
# bfm下单
manual_quotation = fields.Boolean('人工编程', default=False, readonly=True)
part_number = fields.Char(string='零件图号', readonly=True)
@api.constrains('tool_length')
def _check_tool_length_size(self):
@@ -626,6 +627,7 @@ class ResProductMo(models.Model):
'model_remark': item['remark'],
'default_code': '%s-%s' % (order_number, i),
'manual_quotation': item['manual_quotation'] or False,
'part_number': item['part_number'] or '',
'active': True,
}
copy_product_id.sudo().write(vals)