[FIX] barcodes: compatibility of `new Event()` for IE >= 9.0
[FIX] barcodes: compatibility of `new Event()` for IE >= 9.0

Using the constructor `new Event()` is not supported in IE >= 9.0
(tested on IE 11). It raises the below error:
`Object doesn't support this action`

This revision implements the Polyfill `CustomEvent()` suggested
by the MDN here:
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
and uses it if the `new Event()` call fails.

opw-690984

hip-odoo/odoo,ygol/odoo,ygol/odoo,hip-odoo/odoo,storm-computers/odoo,laslabs/odoo,laslabs/odoo,ygol/odoo,storm-computers/odoo,laslabs/odoo,ygol/odoo,Elico-Corp/odoo_OCB,hip-odoo/odoo,storm-computers/odoo,laslabs/odoo,Elico-Corp/odoo_OCB,dfang/odoo,hip-odoo/odoo,bplancher/odoo,Elico-Corp/odoo_OCB,storm-computers/odoo,dfang/odoo,bplancher/odoo,Elico-Corp/odoo_OCB,storm-computers/odoo,bplancher/odoo,storm-computers/odoo,hip-odoo/odoo,ygol/odoo,dfang/odoo,laslabs/odoo,dfang/odoo,Elico-Corp/odoo_OCB,dfang/odoo,dfang/odoo,bplancher/odoo,bplancher/odoo,laslabs/odoo,Elico-Corp/odoo_OCB,hip-odoo/odoo,ygol/odoo,ygol/odoo,bplancher/odoo