This reverts commit 52906999, reversing changes made to 76e085cb. PR #30690 is a cleaner solution to the problem than PR #30402. closes odoo/odoo#30696