fix bug for Odoo8 compliance