Skip to content
Snippets Groups Projects
Commit 71a3b5b2 authored by Florent de Labarre's avatar Florent de Labarre
Browse files

[FIX] stock: impossible to search correctly location


Before this PR Odoo don't pre-search on location.

closes odoo/odoo#97014

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent edaf019e
No related branches found
No related tags found
No related merge requests found
...@@ -348,7 +348,8 @@ ...@@ -348,7 +348,8 @@
<search string="Stock Moves"> <search string="Stock Moves">
<field name="origin" filter_domain="['|', '|', ('origin', 'ilike', self), ('name', 'ilike', self), ('picking_id', 'ilike', self)]" string="Reference"/> <field name="origin" filter_domain="['|', '|', ('origin', 'ilike', self), ('name', 'ilike', self), ('picking_id', 'ilike', self)]" string="Reference"/>
<field name="product_id"/> <field name="product_id"/>
<field name="name" string="Location" filter_domain="['|',('location_id', 'ilike', self),('location_dest_id', 'ilike', self)]"/> <field name="location_id" string="Source Location" groups="stock.group_stock_multi_locations"/>
<field name="location_dest_id" string="Destination Location" groups="stock.group_stock_multi_locations"/>
<field name="partner_id" string="Partner" filter_domain="[('picking_id.partner_id', 'child_of', self)]"/> <field name="partner_id" string="Partner" filter_domain="[('picking_id.partner_id', 'child_of', self)]"/>
<filter string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/> <filter string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
<filter string="To Do" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/> <filter string="To Do" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment