What is Scaffold (Python Package) and how it is used in Nevpro’s ERP?

What is Scaffold (Python Package) and how it is used in Nevpro’s ERP?

Scaffold is a python Package which can be used for Automatic Creation of custom module directory structure.

In which it will create all the necessary files with its Library import, commented class, record template, manifest file, list view definition, actions opening views on models, and menu categories.

Use this command & save your time instead of creating different files for the same.

Command to run in terminal:

/opt/odoo-10$ ./odoo-bin scaffold custom_module /opt/odoo-10/addons

Each project you scaffold will create the following directory structure:

  • custom_module / controllers / controllers.py, __init__.py
  • custom_module / demo / demo.xml
  • custom_module / models / __init__.py, models.py
  • custom_module / security / ir.model.access.csv
  • custom_module / views / templates.xml, views.xml
  • custom_module / __init__.py
  • custom_module / __manifest__.py

For more information about ERP, please Contact Nevpro Business Solutions.

Follow us on Facebook.