Packages : Module not found

When i use frappe packages at that time for this package i had create a module name m1 and use this module m1 for print format. print format has custom format option is enable. when i try to use this print format at that time it throw error module not found.

If i go to same module document and change its custom option value enable to disable at that time module is remove from package and come under specific app (eg., frappe).

now again i try to apply same print format it will work.

is there any specific criteria for using package or module ?