[FIX] stock: incorrect search view
- Activate stock locations
- Go to Inventory > Configuration > Locations
- Click on the 'Products' stat button
The filters `real_stock_available` and `real_stock_negative` are not
applied although they are in `search_default_`.
This is due to c1f7987f49 which refactored the various search
views of products.
The solution is to add the `search_view_id` in the action. However:
- `<act_window>` doesn't support it
- `<act_window>` is deprecated in 14.0
Therefore, we convert the `act_window` element into a regular `record`
and add the appropriate `search_view_id`.
opw-2371962
closes odoo/odoo#60942
X-original-commit: 9677128c42761123e59fa8187a59864eb89f06e8
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
|
||||
'views/res_partner_views.xml',
|
||||
'views/product_strategy_views.xml',
|
||||
'views/product_views.xml',
|
||||
'views/stock_production_lot_views.xml',
|
||||
'views/stock_picking_views.xml',
|
||||
'views/stock_scrap_views.xml',
|
||||
@@ -69,7 +70,6 @@
|
||||
'views/stock_move_line_views.xml',
|
||||
'views/stock_move_views.xml',
|
||||
'views/stock_orderpoint_views.xml',
|
||||
'views/product_views.xml',
|
||||
'views/res_config_settings_views.xml',
|
||||
'views/report_stock_traceability.xml',
|
||||
'views/stock_template.xml',
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
'search_default_virtual_stock_negative': 1, 'search_default_real_stock_negative': 1, 'create': False}</field>
|
||||
<field name="binding_model_id" ref="model_stock_location"/>
|
||||
<field name="binding_view_types">form</field>
|
||||
<field name="search_view_id" ref="stock.stock_product_search_form_view"/>
|
||||
</record>
|
||||
|
||||
<record id="view_location_form" model="ir.ui.view">
|
||||
|
||||
Reference in New Issue
Block a user