Hello Pascal,
Your problem is very easy to deal with.
Here I am giving the place where you need to change. However you need to extend the code yourself in your custom module. (I guess you know how to build custom web module)
Step 1 : Go to web/static/src/js folder and open search.js file
In class instance.web.SearchView there is one function named as start. You need to change your code here.
Step 2 : Little change in start function.
From line no. 440 to 445 (this the updated Odoo of july 11, 2015 from github) you will find this code block,
if (view_manager) {
this.view_manager = view_manager;
view_manager.on('switch_mode', this, function (e) {
self.drawer.toggle(e === 'graph');
});
}
You just need to replace following line,
self.drawer.toggle(e === 'graph');
with this line,
self.drawer.toggle(e!=='form');
So finally that code block will look like as follows,
if (view_manager) {
this.view_manager = view_manager;
view_manager.on('switch_mode', this, function (e) {
//self.drawer.toggle(e === 'graph');
self.drawer.toggle(e!=='form');
});
}
Reason of why I replaced line : By default only at "graph" view, search view was showing unfolded. I made search view unfolded in every view except "form" view.
Perfact Solution : You can make your custom web module, extend the class instance.web.SearchView & override the function "start". It is very easy.
Suggetion : Never do direct change on base addons of Odoo. Once you update from git, all your custom changes will be deleted.
Finally I hope this post will help you to achieve exactly what you want. "(whew):skype"
Latest update : This module is freely available at this link .
still not found.
Somebody has a solution for this?