Skip to main content

Building a skeleton structure for a module in odoo

we can easily build a skelton structure for a module in odoo using scaffold commad. Here we can see how scaffilding works in odoo.
goto odoo folder then enter the command


./odoo-bin scaffold module_name folder_name
  • module_name - new module will be created as " module_name ",you can change it by your own needs.
  • folder_name - new module will be created inside this folder.if you want to create new module inside existing directory you can replace this by your existing directory name.

the module would be created as seen in the above picture. The modules were created automatically by odoo and you can edit the contents as required

you can find more information and details in the official documentation.you can find more information and details in the official documentation.
see: official documentation

Comments

Popular posts from this blog

Odoo 12 Development In Ubuntu 18.04 Using Pycharm

Odoo 12 Development in ubuntu 18.04 using PyCharm Update and upgrade the system first sudo apt-get update sudo apt-get -y upgrade Installing python dependencies for odoo12       sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel    libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less Installing Pycharm  For install PyCharm, Install PyCharm on ubuntu 18.04 is by snappy packaging system, open terminal and type following command sudo snap install pycharm-community --classic Or,you can download it from here https://www.jetbrains.com/pycharm/download/download-thanks.html?platform=linux  . After the successfull download of the pycharm, goto the bin folder,open terminal here pycharm.sh file using ./pycharm.sh Alternatively,you can install PyCharm CE using the ubuntu Software Center as shown in the image below Installing P...

HOW TO CREATE A MODULE IN ODOO 12

How to create a module in odoo12 Module structure    Our custom module must be inside a seperate folder,here life_insurance is our module name.And inside our folder contain 1- models    The model folder will contain our python files which are used in our custom module 2- security    The security folder will contain the files related to the security 3- views    The views folder will contain the XML files, which are used to define our custom modoule's view. 4- __init__.py    To import our python files which are used in this custom module 5- __manifest__.py    The manifest file serves to declare a python package as an odoo module and to specify module metadata    The __manifest__.py file contains  Name : Name of the module to be displayed Version : Modules version Summary : Summary of the modoule Description : Extended description for the module  Author : Name of ...