Commit 349e404
[FIX] web: Form stat button stays correctly disabled
This commit is partial cherry-pick of commit 5f5e699
that was added in 15.1. Hence this is a backport fix.
A stat button set as disabled was used to just show some statistics
without an action on click. However, on tasks executed by the Form,
all the buttons would be temporarly set as disabled then set back to
enabled. This would lose the original state of the button and make them
all clickable.
The way it worked before v14.5 was most likely because the action
manager would not throw an error on an action with those "invalid"
arguments.
Also, a button without a type and name will now be set the disabled
attribute automatically.
opw-2868647
closes odoo#93269
Signed-off-by: Simon Genin (ges@odoo) <[email protected]>1 parent b685938 commit 349e404
File tree
2 files changed
+61
-8
lines changed- addons/web/static
- src/legacy/js/views/form
- tests/legacy/views
2 files changed
+61
-8
lines changedLines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
200 | | - | |
201 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
208 | | - | |
209 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
| |||
1124 | 1135 | | |
1125 | 1136 | | |
1126 | 1137 | | |
| 1138 | + | |
1127 | 1139 | | |
1128 | 1140 | | |
1129 | 1141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1269 | 1269 | | |
1270 | 1270 | | |
1271 | 1271 | | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1272 | 1313 | | |
1273 | 1314 | | |
1274 | 1315 | | |
| |||
2951 | 2992 | | |
2952 | 2993 | | |
2953 | 2994 | | |
2954 | | - | |
| 2995 | + | |
2955 | 2996 | | |
2956 | 2997 | | |
2957 | 2998 | | |
| |||
7384 | 7425 | | |
7385 | 7426 | | |
7386 | 7427 | | |
7387 | | - | |
| 7428 | + | |
7388 | 7429 | | |
7389 | 7430 | | |
7390 | 7431 | | |
| |||
7448 | 7489 | | |
7449 | 7490 | | |
7450 | 7491 | | |
7451 | | - | |
| 7492 | + | |
7452 | 7493 | | |
7453 | 7494 | | |
7454 | 7495 | | |
| |||
7561 | 7602 | | |
7562 | 7603 | | |
7563 | 7604 | | |
7564 | | - | |
| 7605 | + | |
7565 | 7606 | | |
7566 | 7607 | | |
7567 | 7608 | | |
| |||
0 commit comments