Updated module to work with odoo v8