Updated for OpenERP 7.0