1、表面工艺添加按类型筛选功能;2、夹具产品的类型、规格添加必填

This commit is contained in:
yuxianghui
2024-03-28 10:35:08 +08:00
parent 63263e3509
commit 2aa29e5cbf
3 changed files with 8 additions and 4 deletions

View File

@@ -830,7 +830,7 @@ class FunctionalToolAssembly(models.Model):
code = fields.Char('功能刀具编码', readonly=True)
rfid = fields.Char('Rfid', readonly=True)
tool_groups_id = fields.Many2one('sf.tool.groups', '刀具组', readonly=True)
name = fields.Char(string='名称', readonly=True, compute='_compute_name')
name = fields.Char(string='名称', readonly=True, compute='_compute_name', store=True)
assembly_order_code = fields.Char(string='组装单编码', readonly=True)
functional_tool_name_id = fields.Many2one('product.product', string='功能刀具', readonly=True)