fixed reset_openerp_sync_flag bug