From 958090cc2795041aeda4ff2e1dbc5636261c3045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 Aug 2024 11:31:10 +0200 Subject: [PATCH] Search on location of inventory when searching the inventory location of lines Closes #13464 --- modules/stock/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stock/inventory.py b/modules/stock/inventory.py index 1d4166dfa7..f0d9ea2499 100644 --- a/modules/stock/inventory.py +++ b/modules/stock/inventory.py @@ -425,7 +425,7 @@ class InventoryLine(ModelSQL, ModelView): @classmethod def search_inventory_location(cls, name, clause): nested = clause[0][len(name):] - return [('inventory.' + name + nested, *clause[1:])] + return [('inventory.location' + nested, *clause[1:])] @fields.depends('inventory', '_parent_inventory.date') def on_change_with_inventory_date(self, name=None):