Skip to content

New Odoo Module

rafageist edited this page Nov 30, 2026 · 1 revision

New Odoo Module

File > New Odoo module writes a new Odoo 19 or 20 module after showing every file it will create.

File > New Odoo module: the wizard, the preview, the module written and opened

  1. Choose the addons folder, Odoo 19 or 20, the technical and display names, the dependencies, the author and, optionally, a first model with its description and its views.
  2. Preview shows every file and its text. Nothing is on disk yet; Back returns to the wizard with what you typed.
  3. Generate writes the files and opens the model and its views, with the module in the Explorer.

The files are ordinary Odoo source: __manifest__.py, __init__.py, models/__init__.py, the model, its access rights and, if chosen, views/<model>_views.xml with list, form and search views, an action and menus.

  • Odoo 19 gets security/ir.model.access.csv; Odoo 20, which replaced ir.model.access with ir.access, gets security/ir.access.csv. Both use <list> views.
  • The first model is a new model (_name), not an extension (_inherit). Its access rights give internal users (base.group_user) create, read, write and delete: narrow them as needed.
  • The same choices always produce the same files.
  • Nothing is written outside the chosen folder, a module folder that already holds anything is never written into, and a file that appears between the preview and Generate stops it: what that generation had written is removed again.

The wizard

The preview

To extend the module afterwards, see Add Models and Fields.

Clone this wiki locally