Updates in order to work with OpenERP 7