to create new module in odoo you have to follow these steps
- create new folder "better with your module name" in your addons path , this folder will contain your module's files and folders
- inside the folder you have to create two main files
- the __init__.py file in which you have to import all of your module's python file , or the folder that contain python files
- the __manifest__.py which is goona be like this
{
'name': 'your module name',
'version': 'the server version which can run your module',
'license': 'LGPL-3', // your license
'category': 'Education', // your module category
"sequence": 3,
'summary': 'short description for your module ',
'complexity': "easy",
'author': 'Tech Receptives', // the developer of the module
'website': ' your web site if you have ',
'depends': [the other modules which are necessary for your module's work],
'data': [
import all of module's xml files by their path
],
'demo': [
import all of module's xml files by their path which are contain
'name': 'your module name',
'version': 'the server version which can run your module',
'license': 'LGPL-3', // your license
'category': 'Education', // your module category
"sequence": 3,
'summary': 'short description for your module ',
'complexity': "easy",
'author': 'Tech Receptives', // the developer of the module
'website': ' your web site if you have ',
'depends': [the other modules which are necessary for your module's work],
'data': [
import all of module's xml files by their path
],
'demo': [
import all of module's xml files by their path which are contain
your demo data
],
'images': [
import your module's icon
],
'installable': True, // is you module installable or not
'auto_install': False, // do you want to install your module auto or not
'application': True, // is you module an app or not
}
],
'images': [
import your module's icon
],
'installable': True, // is you module installable or not
'auto_install': False, // do you want to install your module auto or not
'application': True, // is you module an app or not
}
this image show the standard architecture of the module
No comments:
Post a Comment