ERPNext Conference 2019* Blog

ERPNext confused when i use same doctype name in different modules


Dear All,

when i create doctype called “DoctypeName1” in “module1” module
and create doctype called “DoctypeName1” in “module2” module
“same server same bench”

in the site, is module2 only installed,
so I expect to run module2/DoctypeName1 python functions

but ERPnext execute module1/DoctypeName1 python functions which totally have different functions

hope to get suggestions to handle multi-sites multi apps without facing any errors.

thank you in advance


In Frappe Framework, DocType names have to be unique. You will have to namespace them with your custom app name as a prefix if you want to use conflicting names.