Dears:
my domain filter is ('id', 'in', [15331, 15332, 15386])
use self.env['mrp.production'].search(domain)
result is 15386, 15331, 15332....this result is not mind ...how can i get my want result is [15331 15332 15386]
orders is show ===> 15386, 15331, 15332.
Production = self.env["mrp.production"]
domain = ["!", ("state", "in", ("done", "cancel")), ("id", "in", [15331, 15332, 15386])]
orders = Production.search(domain)