Search on location of inventory when searching the inventory location of lines

Closes #13464
(grafted from 351e4b5e42ace0d39c6851385afd2f36b419e4b4)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2024-08-22 11:31:10 +02:00
1 parent 8e81f18950
commit 56b85baa8f
1 file changed
+1 -1
+1 -1
View File
@@ -419,7 +419,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):