[IMP] web: Remove tiny code duplication
[IMP] web: Remove tiny code duplication

ygol/odoo,ygol/odoo,hip-odoo/odoo,hip-odoo/odoo,hip-odoo/odoo,hip-odoo/odoo,hip-odoo/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,hip-odoo/odoo