[FIX] stock: Owner filter crash

Current behavior:
Filter "Owner is not set" on Package in inventory app was causing a traceback

Steps to reproduce:
- Go in inventory app
- Go in package
- Apply a filter "Owner is not set"
- You get a traceback

opw-2714726

closes odoo/odoo#82237

X-original-commit: e4b350907f01253a96ddc763d6fdbdd307874e23
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
roen-odoo
2022-01-05 10:42:41 +00:00
parent 3b98b8d89e
commit 7965efe75f
+1 -1
View File
@@ -1078,7 +1078,7 @@ class QuantPackage(models.Model):
else:
packs = self.search([('quant_ids', operator, value)])
if packs:
return [('id', 'parent_of', packs.ids)]
return [('id', 'in', packs.ids)]
else:
return [('id', '=', False)]