def METHOD_NAME(self):
    self.getFields()
    FreeCAD.ActiveDocument.commitTransaction()
    FreeCADGui.ActiveDocument.resetEdit()
    FreeCADGui.Control.closeDialog()
    FreeCAD.ActiveDocument.recompute()