Odoo Module Boilerplate

Odoo offers a way to scaffold a module with the built-in command line. If you are new to Odoo development, the created module still lacks some features for reference. That’s why I create this Odoo module boilerplate.

List of features:

  • Create a custom model with:
    • Kanban, tree, and form.
    • Search views with custom Group By, Filter, Search condition.
    • Auto-generated sequence Name field.
  • Inherit product.template table to add new field and show it in XML template.
  • Add custom action to custom model.
  • Add custom report (html format).
  • Add fields to Settings page.
  • Controllers to show detail custom model info.
  • Confirmed working with Odoo 12.

What to do after downloading the source code:

  • Change module folder’s name.
  • Modify settings in __manifest__.py file.
  • Search and replace the custom model product.resource (product_resource for views) with yours.
  • Remove the function you don’t use.

Download on Github

» Our License

Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close