[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:
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user