summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-05-12 13:23:27 +0200
committerGéry Debongnie <ged@odoo.com>2017-05-12 14:05:17 +0200
commit310588b8136527837e76f152d93b5d8079b8087c (patch)
tree81f294b8ea7b69c0fe3896e262ae7caf28d26b01 /addons/web/static/src/js/fields/basic_fields.js
parente7e8ecc77b56a2e15d5e158f0f0ff8aa2cc91285 (diff)
[FIX] web: prevent duplicated footers in dialogs
In some cases, we had duplicated footers in form view dialogs. It actually happened when the view was reloaded, which is not particularly frequent, but happens most of the time the user clicks on an action button, which does not close the window. To reproduce the issue, you can open the lunch module, click on the 'Feeling Lucky' button. It will open a form view with a special button in the footer: 'I'm feeling lucky'. Clicking on that button will return an error (no order matches the criterion), and will trigger a form reload. Then, you will see two footers: one in the modal footer, the other one in the form renderer. The solution to this issue is to make sure, when we update the view and a footer tag is found in the form renderer, to replace the current footer buttons by these new buttons.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions