Fix entity definition of OrderHeader and do the following changes in the implementation;
- Remove relations with OrderHeaderNoteView and OrderItemAndShipGroupAssoc from the entity definition.
- Check for the both views used at any place as getRelated() generic value methods on OrderHeader then change them with appropriate EntityQuery method or delegaor or other script as applicable.
- Few find areas are;
Note: As we are removing relation from OrderHeader so only need to work on the items where we are trying to get related data by using the relations. We need to rewrite only those lines of code. Reverse in not true.