[REM] stock: remove unused action

- Since 096f8c56b7 , action with
id='act_product_stock_move_open' is unused.
- Since f23cc14d13 , action with
id='action_receipt_picking_move' is unused.
- Since 88b000859f , action with
id='product_template_open_quants' is unused.
- Since v10, the action with
id='stock_picking_to_batch_action' is unused.

closes odoo/odoo#45270

Related: odoo/upgrade#840
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Co-authored-by: Victor Feyens <vfe@odoo.com>
This commit is contained in:
Rémy Voet (ryv)
2020-02-25 07:48:16 +00:00
co-authored by Victor Feyens
parent 2d623375d6
commit 182604178c
3 changed files with 1 additions and 49 deletions
+1 -34
View File
@@ -400,14 +400,6 @@
</field>
</record>
<record id="act_product_stock_move_open" model="ir.actions.act_window">
<field name="context">{'search_default_product_id': active_id, 'default_product_id': active_id}</field>
<field name="name">Moves</field>
<field name="res_model">stock.move</field>
<field name="view_id" ref="stock.view_move_tree"/>
</record>
<record id="stock_move_action" model="ir.actions.act_window">
<field name="name">Stock Moves</field>
<field name="res_model">stock.move</field>
@@ -580,31 +572,6 @@
</field>
</record>
<record id="action_receipt_picking_move" model="ir.actions.act_window">
<field name="name">Incoming Products</field>
<field name="res_model">stock.move</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain" eval="[('picking_id.picking_type_id.code','=','incoming'), ('location_id.usage','!=','internal'), ('location_dest_id.usage', '=', 'internal')]"/>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_move_tree_receipt_picking')}),
(0, 0, {'view_mode': 'kanban', 'view_id': ref('stock_move_view_kanban')})]"/>
<field name="context">{'product_receive': True, 'search_default_future': True}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Register a product receipt
</p><p>
Here you can receive individual products, no matter what
purchase order or picking order they come from. You will find
the list of all products you are waiting for.
</p><p>
Once you receive an order, you can filter based on the name of
the vendor or the purchase order reference. Then you can confirm
all products received using the buttons on the right of each line.
</p>
</field>
</record>
<menuitem action="stock_move_action" id="stock_move_menu" parent="stock.menu_warehouse_report" sequence="140" groups="base.group_no_one"/>
<menuitem action="stock_move_action" id="stock_move_menu" parent="stock.menu_warehouse_report" sequence="140" groups="base.group_no_one"/>
</odoo>
-6
View File
@@ -166,12 +166,6 @@
</field>
</record>
<record model="ir.actions.act_window" id="product_template_open_quants"> <!-- Not used -->
<field name="name">Stock On Hand</field>
<field name="context">{'search_default_internal_loc': 1, 'search_default_productgroup':1, 'search_default_locationgroup':1}</field>
<field name="domain">[('product_id.product_tmpl_id', '=', active_id)]</field>
<field name="res_model">stock.quant</field>
</record>
<record model="ir.actions.act_window" id="location_open_quants"> <!-- Used in location -->
<field name="context">{'search_default_productgroup': 1}</field>
<field name="domain">[('location_id', 'child_of', active_ids)]</field>
@@ -24,15 +24,6 @@
</field>
</record>
<!-- add picking to batch action -->
<record id="stock_picking_to_batch_action" model="ir.actions.act_window">
<field name="name">Add to Batch</field>
<field name="res_model">stock.picking.to.batch</field>
<field name="view_mode">form</field>
<field name="view_id" ref="stock_picking_to_batch_form"/>
<field name="target">new</field>
</record>
<act_window id="stock_picking_to_batch_action_stock_picking"
name="Add to batch"
res_model="stock.picking.to.batch"