Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] base_sparse_field,mail: handle None _instanciate_attrs override
The parent was expected to return a dict, but it can also return None in some cases. When that happens, the overrides were crashing because it is impossible to assign a key/val to None. Note that using `if` conditions like this also prevents from writing on the dict if it is existing but empty, but due to the definition of the parent, if there is a dict, it will not be empty. closes #38168 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
- Loading branch information