With this commit, overriding the `onWindowClick` function from `dropdown.js` becomes much simpler. Previously, it necessitated overriding the entire function, but now it can be done with minimal effort by just overriding this specific part. task-3717014 closes odoo/odoo#155326 X-original-commit: edf3c7f5c566f530bed2f243a6f78fcf7d1196d2 Related: odoo/enterprise#57471 Signed-off-by: Francois Georis (fge) <fge@odoo.com>