Skip to content

Commit

Permalink
[13.0] [FIX] stock_ux: To avoid problems with loading with huge produ…
Browse files Browse the repository at this point in the history
…cts in the inventory.

If you select a lot of products in the inventory then on spite of the field was hidden the loading of this products cause performance problems when you try to access
to the view.
  • Loading branch information
nicomacr committed Sep 10, 2021
1 parent fbb95b6 commit b48d1cf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stock_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock UX',
'version': '13.0.1.11.0',
'version': '13.0.1.12.0',
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand All @@ -46,6 +46,7 @@
'views/stock_backorder_confirmation_views.xml',
'views/stock_return_picking_views.xml',
'views/stock_picking_type_views.xml',
'views/stock_inventory_views.xml',
'views/report_deliveryslip.xml',
'wizards/stock_operation_wizard_views.xml',
'wizards/res_config_settings_views.xml',
Expand Down
12 changes: 12 additions & 0 deletions stock_ux/views/stock_inventory_views.xml
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<odoo>
<record id="view_inventory_tree" model="ir.ui.view">
<field name="name">stock.inventory.tree</field>
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock.view_inventory_tree"/>
<field name="arch" type="xml">
<field name="product_ids" position="replace"/>
</field>
</record>

</odoo>

0 comments on commit b48d1cf

Please sign in to comment.