Search on location of inventory when searching the inventory location of lines
Closes #13464
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user