My problem is about custom doctype

Hi everyone!

How to make a complete extension of a document (doctype) and that this extension does not alter the original and that all the references that exist towards the original, are transferred to the new one.

Thanks!!

Why don’t you customize the existing doctype as per your requirements using custom app.
Refer https://frappeframework.com/docs/v14/user/en/python-api/hooks#override-doctype-class to know more about overriding doctype class.

Hi, thank you for answering my question.

The problem is that I cannot customize the original doctype. I need to solve this problem to move forward in my project.
I want to know if there is an alternative solution.
Thank you very much.

Can you create a new app?

yes i can, why ?

Then you can customize the doctype class and it’s methods as per your requirements