Openerp 7.0 optimization patch