1.限制工序-作业配置 产品只能选中一个
2.添加产品下拉框查询过滤 3.产品选择框可以跳转到产品页面
This commit is contained in:
@@ -21,6 +21,12 @@ class SfProductionProcessParameter(models.Model):
|
||||
for record in self:
|
||||
if len(record.outsourced_service_products) > 1:
|
||||
raise ValidationError("工艺参数不能与多个产品关联")
|
||||
|
||||
@api.onchange('outsourced_service_products')
|
||||
def _onchange_validate_partner_limit(self):
|
||||
for record in self:
|
||||
if len(record.outsourced_service_products) > 1:
|
||||
raise ValidationError("工艺参数不能与多个产品关联")
|
||||
@api.depends('outsourced_service_products')
|
||||
def _compute_is_product_button(self):
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user