-
- Downloads
[FIX] web: list_editable in FieldOne2Many: onSuccess at the right time
When changing a value for a o2m (list) within a form, the _setValue
returned a Promise that did not take into account the real rendering of
the list renderer.
The use case at hand is:
- enable product configurator
- have a product with options
- add that product in a SO
- add the option as well through the product configurator
- confirm the configurator
The configurator triggers an add_record event, with an onSuccess callback
Before this commit, the onSuccess callback was called too early, when the previous
rendering operations were not finished yet.
After this commit, the onSuccess is executed when the list renderer is really ready
opw-2580044
closes odoo/odoo#79441
Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
Showing
- addons/web/static/src/js/fields/relational_fields.js 1 addition, 1 deletionaddons/web/static/src/js/fields/relational_fields.js
- addons/web/static/src/js/views/list/list_editable_renderer.js 1 addition, 1 deletion...ns/web/static/src/js/views/list/list_editable_renderer.js
- addons/web/static/tests/fields/relational_fields/field_one2many_tests.js 66 additions, 0 deletions...ic/tests/fields/relational_fields/field_one2many_tests.js
Loading
Please register or sign in to comment