stock.quant inventory_quantity_set and (inventory_quantity < 0 or has_over_discrepancy) stock.quant.last_has_over_discrepancy.search stock.quant