Problem with custom button for apply transformations on model
When adding an operator to a layout, you should only add the API path, e.g. "object.transform_apply". Any parameters can be configured after if you store layout.operator in a variable:

operator = layout.operator("object.transform_apply", text="Reset Transforms")
operator.location = False
operator.rotation = True
operator.scale = True