diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-10-25 14:58:00 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-10-25 21:51:36 +0200 |
| commit | 0b41f21c165f231054488fd660c04f2ac3dc2560 (patch) | |
| tree | 44660be28aa0c4db91fc34674709f525e9b767ed /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | f45edfbe6d03b15977392dda9561cd7a3e16ce34 (diff) | |
[FIX] web: buttons with confirm attribute works properly
Before this commit, buttons in form view with the confirm attributes had
a peculiar behaviour:
- < saas-16: they saved the record as soon as you clicked on them, so
the warning was basically ignored
- in saas-16+ (the new views): the button did not save the record before
calling the method, at all.
This can be a problem, obviously. Also, it does not seem consistent to
have a different behaviour when the user clicks on OK in the confirm
dialog, compared to a button without the confirm attribute.
So, with this commit, we just make sure that such buttons save the
record before calling the method, just like other buttons.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
