Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to avoid the new only mode when entering a menuitem

Dale E. Moore
on 10/29/13, 8:46 AM 1,199 views

When I click a menu item I get a new object and I just have to save the object, like this:

image description

But, I would prefer the normal method of entry into a menu item, like Sales, Customer menu item which gives you a tree listing of customers, a button to create and the search filter like this:

image description

How do I change it to get the tree and a Create button?

Ashif Abdulrahman
On 10/29/13, 10:19 AM

you should add these lines in your action which is called on menuitem

**<field name="view_type">form</field>

<field name="view_mode">form,tree</field>

<field name="view_id" ref="view_student_marklist_tree"/>**

in 3rd line give ref = your tree view id

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 10/29/13, 8:46 AM
Seen: 1199 times
Last updated: 3/16/15, 8:10 AM