diff options
| author | Julien Castiaux <juc@odoo.com> | 2019-12-12 09:30:27 +0000 |
|---|---|---|
| committer | Julien Castiaux <juc@odoo.com> | 2020-02-07 14:32:58 +0000 |
| commit | 450263338ccbb4cf02a95fd87e84a8963096c920 (patch) | |
| tree | 6462922fe250e327ae9403d76fa38c16b3e6f0ea /addons/web/static/src/js/views/form | |
| parent | 20ff585c2b156aceba7b8224b9633211d4ac4853 (diff) | |
[FIX] web: attach the trad alert to the form
The translation alert dialog was attached to the entire view in case no
status bar was found. This resulted in the following layout on large
screens:
chrome
--------------------------------------
| alert dialog | form view | chatter |
| | | |
--------------------------------------
Whereas when a status bar was set on the form view, the rendering was as
follow:
chrome
--------------------------------------
| status bar | chatter |
| alert dialog | |
| form view | |
--------------------------------------
The fix make sure the alert dialog is always placed just above the form
view just like when there is a status bar.
closes odoo/odoo#44878
Task: 2075172
X-original-commit: dacdc30681510e9c2db23610c5be5285a72a8949
Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/form')
| -rw-r--r-- | addons/web/static/src/js/views/form/form_renderer.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js index 89972e700aa..f3c663891b0 100644 --- a/addons/web/static/src/js/views/form/form_renderer.js +++ b/addons/web/static/src/js/views/form/form_renderer.js @@ -147,6 +147,8 @@ var FormRenderer = BasicRenderer.extend({ })); if (this.$('.o_form_statusbar').length) { this.$('.o_form_statusbar').after($notification); + } else if (this.$('.o_form_sheet_bg').length) { + this.$('.o_form_sheet_bg').prepend($notification); } else { this.$el.prepend($notification); } |
