Changes made to py file show on all sites


I just added an update to the I have a multi tenant setup.
I noticed the change applies on all the sites but I need it for one site only. The form created and added to the py file is unique to that business.

How do I restrict the creation of a new doc type to a specific site? Is there anywhere to set a condition such as if doctype: then show certain items.

Thank you

Apps are not site specific. So any change you make applies to all sites.

I think you can handle it using site name in your code.