Skip to content
Snippets Groups Projects
Commit 80592abd authored by Romain Derie's avatar Romain Derie
Browse files

[FIX] web_editor, website: prevent multiple click on save


Clicking on save on html editor is taking quite some time. The user might think
something is not happening and need to click again.
If he does click again, 2 write RPC will be sent, making the COW business code
being triggered twice, ultimately leading to create 2 COW.

Instead of
  A
 / \
B   B'

It will be
    A
  / | \
B   B' B'
With as many B' than there is click on save.

This commit adds a generic helper to make a button load/spin.

closes odoo/odoo#63417

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent db0b65e5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment