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

Closes #13464
This commit is contained in:
Cédric Krier
2024-08-22 11:31:10 +02:00
parent 3239549b99
commit 958090cc27
+1 -1
View File
@@ -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):