Merge branch refs/heads/develop into refs/heads/feature/质量检查弹出框优化
This commit is contained in:
@@ -6,6 +6,16 @@ class StockPicking(models.Model):
|
||||
|
||||
def button_validate(self):
|
||||
res = super(StockPicking, self).button_validate()
|
||||
"""
|
||||
出厂检验报告上传
|
||||
"""
|
||||
|
||||
out_quality_check = self.env['quality.check'].search(
|
||||
[('picking_id', '=', self.id), ('test_type_id.name', '=', '出厂检验报告')])
|
||||
if not out_quality_check.is_factory_report_uploaded:
|
||||
if out_quality_check and self.state == 'assigned':
|
||||
out_quality_check.upload_factory_report()
|
||||
|
||||
"""
|
||||
调拨单若关联了质量检查单,验证调拨单时,应校验是否有不合格品,若存在,应弹窗提示:
|
||||
“警告:存在不合格产品XXXX n 件、YYYYY m件,继续调拨请点“确认”,否则请取消?”
|
||||
|
||||
Reference in New Issue
Block a user