Copy of the module from Odoo addons 8.0, which is NOT working for webkit reports. Fixes issues