forked from Mapan/odoo17e
14 lines
408 B
Python
14 lines
408 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
from odoo.osv import expression
|
|
|
|
|
|
class StockLot(models.Model):
|
|
_inherit = 'stock.lot'
|
|
|
|
def _get_quality_check_domain(self, prod_lot):
|
|
domain = super()._get_quality_check_domain(prod_lot)
|
|
domain = expression.OR([domain, [('finished_lot_id', '=', prod_lot.id)]])
|
|
return domain
|