The method domain_remove_leaf is used to remove leaves from a domain corresponding to given fields. The particular case ['|', leaf_to_remove, leaf_to_remove] is replaced by [true_leaf] however the check of the second element of this subdomain was incorrectly done. This fix addresses this issue. Fixes https://github.com/odoo/odoo/pull/93225 closes odoo/odoo#108188 X-original-commit: 44578077b16b540a0270ea7257f902a2e917f79c Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>