1.优化表面工艺可选参数
2.修复质量警报质量总监没有制造订单访问权限
This commit is contained in:
@@ -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("请添加供应商")
|
||||
|
||||
Reference in New Issue
Block a user