Make `orientnew` respect parent class
Added regression test for #7283
Merge pull request #7283 from Juanlu001/patch-1

Make `orientnew` respect parent class