summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent de Labarre <florent.mirieu@gmail.com>2019-10-14 15:33:24 +0000
committerNicolas Martinelli <nim@odoo.com>2020-04-02 09:36:39 +0000
commitfa896ff452aee383ddfc289a8b87ccc3e61e2237 (patch)
tree8c2b266d374e759fb0d3e67827cb18744f9357d1
parent70da147e9be74757f41a9797ec218c6945a0876c (diff)
[FIX] stock: search on complete name
Using the `complete_name` allows searching more easily in case several sub-locations have the same name. Closes #38733 closes odoo/odoo#48846 X-original-commit: 764433669b8b9d675bd9e3ec6668c4b166901534 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
-rw-r--r--addons/stock/views/stock_location_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/stock_location_views.xml b/addons/stock/views/stock_location_views.xml
index 815aa7588a5..db750532091 100644
--- a/addons/stock/views/stock_location_views.xml
+++ b/addons/stock/views/stock_location_views.xml
@@ -65,7 +65,7 @@
<field name="model">stock.location</field>
<field name="arch" type="xml">
<search string="Stock Locations">
- <field name="name" string="Stock Locations"/>
+ <field name="complete_name" string="Stock Locations"/>
<filter name="in_location" string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations"/>
<filter name="customer" string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations"/>
<filter name="prod_inv_location" string="Production" domain="[('usage', 'in', ['inventory', 'production'])]" help="Production Locations"/>