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
  • 23,193
  • 31
  • 166
  • 308
Sakthi Priya
  • 209
  • 4
  • 19

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
  • 581
  • 1
  • 6
  • 29