def migrate_set_tags_and_taxes_updatable(cr, registry, module):
 env = api.Environment(cr, SUPERUSER_ID, {})
 xml_record_ids = env['ir.model.data'].search([('model', 'in', ['account.tax.template', 'account.account.tag']), ('module', 'like', module)]).ids
 if xml_record_ids:
  cr.execute("update ir_model_data set noupdate = 'f' where id in %s", (tuple(xml_record_ids),))

def migrate_set_tags_and_taxes_updatable ( cr , registry , module ) : env = api . Environment ( cr , SUPERUSER_ID , { } ) xml_record_ids = env [ 'ir.model.data' ] . search ( [ ( 'model' , 'in' , [ 'account.tax.template' , 'account.account.tag' ] ) , ( 'module' , 'like' , module ) ] ) . ids if xml_record_ids : cr . execute ( "update ir_model_data set noupdate = 'f' where id in %s" , ( tuple ( xml_record_ids ) , ) )
this is a utility function used to manually set the flag noupdate to false on tags and account tax templates on localization modules that need migration .