Skip to Content
Menu
This question has been flagged
1 Reply
3320 Views

hello,

i am beginner in odoo 10 and it is hard for me to hide the list view in the product menu of odoo 10. please guide me how to solve this issues?


thanks.

 



Avatar
Discard
Best Answer

Hi AR,

You can inherit the Action of the menu item, and Override the Action.

Check this example, This will Hide the Products Tree view from the Purchase.

Eg:

<record id="purchase.product_normal_action_puchased" model="ir.actions.act_window"> <!-- module_name.original_id-->
<field
name="name">Products</field>
<field
name="type">ir.actions.act_window</field>
<field
name="res_model">product.template</field>
<field
name="view_type">form</field>
<field
name="view_mode">kanban,form</field> <!-- Removed tree view -->
  <field name="context">{"search_default_filter_to_purchase":1}</field>
<field
name="search_view_id" eval="False"/> <!-- Force empty -->
<field name="view_id" eval="False"/> <!-- Force empty -->
<field name="help" type="html">
<p
class="oe_view_nocontent_create">
Click to define a new product.
</p><p>
You must define a product for everything you purchase, whether
it's a physical product, a consumable or services you buy to
subcontractors.
</p><p>
The product form contains detailed information to improve the
purchase process: prices, procurement logistics, accounting data,
available vendors, etc.
</p>
</field>
</record>


Thank you.

Avatar
Discard