fixes regression #120 after Odoo v8 recent change