diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-02-26 12:44:44 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-03-09 13:01:34 +0100 |
| commit | 46857d267b46c6ae91817231f8293403117bb75e (patch) | |
| tree | e16bbf2aedb9e62c966b553e5dcb5ef982540310 /addons/web/static/src/js/widgets/debug_manager.js | |
| parent | 8a47095a609f190890a8be06fb4656f13b43c5e9 (diff) | |
[IMP] board,web: view_manager: lazy loading of default multi-record view
After a refresh or when opening odoo in a new tab, if view_type="form" is
specified in the url, RPCs to load the default multi-record view will be
performed if/when the user clicks on the breadcrumbs.
Moreover, the view manager is directly initialized with the res_id to load
after a refresh on a form view, to prevent the form view to fetch the defaults
values, to render in 'create' more, and then load the requested record and
switch back to 'view' mode.
Some code refactoring as well:
- don't propagate state to the view_manager, but directly the view_type and
res_id
- remove unused argument no_store from switch_mode()
- view_registry.get(): remove unused second argument
- no need to switch_mode in do_load_state() as the correct mode is now loaded
directly, even if it is a mono-record view
Also adapt code in dashboard.js according to changes in view_manager.
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions
