diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-06-23 16:43:29 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-06-24 15:48:27 +0000 |
| commit | e961a2fe0998860f051a8ef585dd619b8a7dadda (patch) | |
| tree | 892ad3d7c8f23338a12da298f699fff770adfc4a /addons/note/data | |
| parent | 446888cc0d8023c771e7fe2a8ea1be501619b39d (diff) | |
[FIX] web: action before field willStart end
On a re-render, when:
- a field is not yet started (still in willStart because of RPC)
- then an action is executed
we can get a traceback because we try to save the field before it is
started and `this.el` is not set.
eg. in MRP on a work order:
- click on + to get new serial number
=> page is re-rendered with RPC call to update duration to
mrp.workcenter.productivity().search_read to update time
counter
- click on "Record production" before RPC is finished
=> traceback because we try to save `duration` that is not already
started (`this.$el.toggleClass` when `this.$el` is `undefined`)
Without change, added test fails with:
"Cannot read property 'toggleClass' of undefined"
in BasicRenderer.canBeSaved
"Expected 6 assertions, but 5 were run"
Before saas-11.3 5faec34a3c this.el was always set in `init` so this
issue did not happen.
opw-2272117
closes #53532
closes odoo/odoo#53612
X-original-commit: befcad51fd236fdaf284f76cea5624d21c070b0e
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/note/data')
0 files changed, 0 insertions, 0 deletions
