-
- Downloads
[FIX] web: restore formview mode when coming back (breadcrumbs)
Before this commit, when the user is in a form view (edit mode) and click on a stat button, a new action is added to the action stack. When the user then comes back to the form view by clicking on the breadcrumb, it is supposed to be in readonly mode. Before this commit, this was not the case. This bug comes from the action manager refactoring, which removed the view manager. With this commit, we add a new action lifecycle method which is called when the action is restored. Note that this commit implicitely changes the semantic of actions with 'target=inline'. As far as I can tell, this only applies to the settings form view, which can easily be fixed by overriding the restore hook. closes odoo/odoo#28663
Showing
- addons/web/static/src/js/chrome/abstract_action.js 7 additions, 0 deletionsaddons/web/static/src/js/chrome/abstract_action.js
- addons/web/static/src/js/chrome/action_manager_act_window.js 4 additions, 2 deletionsaddons/web/static/src/js/chrome/action_manager_act_window.js
- addons/web/static/src/js/views/form/form_controller.js 10 additions, 1 deletionaddons/web/static/src/js/views/form/form_controller.js
- addons/web/static/src/js/views/graph/graph_controller.js 0 additions, 1 deletionaddons/web/static/src/js/views/graph/graph_controller.js
- addons/web/static/src/js/views/graph/graph_model.js 0 additions, 3 deletionsaddons/web/static/src/js/views/graph/graph_model.js
- addons/web/static/tests/chrome/action_manager_tests.js 25 additions, 0 deletionsaddons/web/static/tests/chrome/action_manager_tests.js
- odoo/addons/base/static/src/js/res_config_settings.js 9 additions, 0 deletionsodoo/addons/base/static/src/js/res_config_settings.js
- odoo/addons/base/static/tests/base_settings_tests.js 3 additions, 1 deletionodoo/addons/base/static/tests/base_settings_tests.js
Loading
Please register or sign in to comment