Skip to content
Snippets Groups Projects
Commit 0bfc05c2 authored by Hubert Van de Walle (huvw)'s avatar Hubert Van de Walle (huvw) Committed by Lucas Perais (lpe)
Browse files

[FIX] web: basic_renderer: delay destroy after render when rerendering widget


Steps to follow

  Edit the account.move view (with studio for example)
  Set the lines readonly property to [["partner_id","=",False]]
  Create a new move
  Add a partner
  Add a product
  Remove the partner
  -> A traceback appears: widget.$el is undefined

Cause of the issue

  widget.$el is used after the widget has been destroyed

This commit corrects it, by waiting for new widgets to be "mounted" before destroying
old ones. The code already exists in 14.0 (3fd7b200).

opw-2557142

closes odoo/odoo#78625

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent 65cdb43b
No related branches found
No related tags found
No related merge requests found
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