[FIX] mrp: Refer to mrp.production in Manufacturings list

Steps to reproduce :
- Install stock, mrp
- Go to Inventory -> Operations -> Manufacturings
- No MO could be found

The view showed `stock.picking` having a 'manufacturing'
picking_type_code. Now instead shows a list of `mrp.production` as it is
done when clicking on the 'Manufacturing' type in the stock Overview.

Part of task-3218314

Part-of: odoo/odoo#119381
This commit is contained in:
clesgow
2023-05-09 21:04:02 +02:00
parent 34656b29f7
commit 2118bbe452
+4 -4
View File
@@ -146,11 +146,11 @@
<record id="action_picking_tree_mrp_operation" model="ir.actions.act_window">
<field name="name">Manufacturings</field>
<field name="res_model">stock.picking</field>
<field name="res_model">mrp.production</field>
<field name="view_mode">tree,kanban,form,calendar</field>
<field name="domain">[('picking_type_code', '=', 'mrp_operation')]</field>
<field name="context">{'contact_display': 'partner_address', 'default_company_id': allowed_company_ids[0], 'restricted_picking_type_code': 'mrp_operation'}</field>
<field name="search_view_id" ref="stock.view_picking_internal_search"/>
<field name="domain"></field>
<field name="context">{'default_company_id': allowed_company_ids[0]}</field>
<field name="search_view_id" ref="mrp.view_mrp_production_filter"/>
</record>
<menuitem id="mrp_operation_picking" name="Manufacturings" parent="stock.menu_stock_transfers"