add module defs on app install
Make is mandatory for a permission on doctype creation
fix set_new_name when no naming is specified in DocType