1.优化表面工艺可选参数

2.修复质量警报质量总监没有制造订单访问权限
This commit is contained in:
jinling.yang
2024-03-15 10:48:01 +08:00
parent 603f9e3f34
commit 4765e34c09
3 changed files with 42 additions and 39 deletions

View File

@@ -64,7 +64,7 @@ class MrsMaterialModel(models.Model):
@api.constrains('supplier_ids')
def _check_gain_way(self):
if not self.gain_way:
raise UserError("输入获取方式")
raise UserError("选择获取方式")
if self.gain_way in ['外协', '采购']:
if not self.supplier_ids:
raise UserError("请添加供应商")