Update for openerp 7