增加质检模块

This commit is contained in:
胡尧
2025-01-08 11:16:05 +08:00
parent b996c0c787
commit db83846588
165 changed files with 30620 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class StockMoveLine(models.Model):
_inherit = 'stock.move.line'
def _without_quality_checks(self):
self.ensure_one()
return super()._without_quality_checks() or not self.quality_check_ids.filtered(lambda qc: qc.measure_on != 'move_line')