#NEWLINE# def after_rename( self , olddn , newdn , merge = False ) : #NEWLINE# #INDENT# if merge : #NEWLINE# #INDENT# parent_field = ( 'parent_' + self . doctype . replace ( ' ' , '_' ) . lower ( ) ) #NEWLINE# rebuild_tree ( self . doctype , parent_field )