Suite: Fix problems and make some enhancements for module-pro template code generation. #15986
Description
Resolves #15971
Checklist
- I fully tested it as developer / designer and created unit / integration tests
- I documented it (or no need to document or I will create a separate documentation issue)
- I worked with the design team to get their idea for UI/UX design (or no need to design for this PR)
- I've assigned reviewer, related labels and set a milestone for this PR
How to test it?
Create a module-pro template, generate crud pages, establish a master-child relationship, and check if is there any problem.