3

I have my custom module which has only security folder contains XML file and manifest file then view folder which has xml file.

Do I need to put init file even if I don't have models folder in my module?

My custom module couldn't be installed. It shows error as "no module named" error odoo.

Any help must be appreciatable.

codependent
  • 20,799
  • 23
  • 140
  • 264
Sakthi Priya
  • 159
  • 13

1 Answers1

1

I couldn't find anything inside Odoo docs but according to an answer on Odoo forum right here - __init__.py is always necessary.

I believe it is Python requirement. Odoo modules are also Python packages, and init is required for package discovery. More on that here.

AnJ
  • 522
  • 1
  • 5
  • 23