I am not a teacher.
"The painting that I got made" is not a complete sentence, but there is nothing wrong with the "got made" part of it. The subject here is the painting.
In, "I got the painting made" "I" is the subject and "the painting" is the object, and it is a sentence.
Student or Learner