How to create custom Module in odoo 16
Vložit
- čas přidán 4. 08. 2024
- I have used Odoo 16 Community Edition and VS Code for this Presentation and idea is that what most basic way we can create custom module in Odoo 16.
#odoo16 #odoo #odoo15 #odoo14 #visualstudio , #erp , #opensource , #html #css #xml #Od0016 #postgresql
Code Link: github.com/odooistic/youtube_... - Jak na to + styl
Applied this to Odoo 17 and it's working. Thank you sir!
amazing.
Thank you for the great videos! I've followed all your steps, including keeps all the folders and structure the same as yours. I've hit update apps from Odoo and refreshed a few times. I also tried logging in as Super User but I can't see my Custom app in Odoo. I've also tried searching for Author or other values. Do you have any idea what could be the issue? Thanks so much!
I figured it out by restarting the service. :D
can you please click on odoo.conf file and check if you have given your custom addons path , like an example (addons_path = c:\odoo16\server\odoo\addons, C:\odoo16\server\custom)
Hello, i have trouble to run debug the Odoo where it didnt open the odoo server, how to make the module is appear?
hi you need to set your addons path
what are all the extensions to be installed in vscode to make the coding easier in odoo. how to create all the files inside the custom/customisation folder , does it created manually or by any other extensions
XML - Many of Odoo's views and data files are written in XML. An XML extension can provide better highlighting and linting for XML files.
Better Jinja - Odoo uses Jinja in its QWeb reporting engine. This extension provides syntax highlighting and code snippets for Jinja templates, which can be very useful.
Rainbow CSV - Odoo often involves working with CSV files for data import. Rainbow CSV highlights columns in CSV files in different colors, making them easier to read and edit.
Odoo Snippets - This extension provides snippets for Python and XML that are commonly used in Odoo development, speeding up the coding process.
Pylint - If you install pylint-odoo, a plugin for Pylint that checks for specific Odoo coding guidelines, you can integrate it into VSCode to automatically check your Python code against Odoo standards.
Additionally, using the terminal within VSCode, you can also run Odoo's scaffold command (odoo-bin scaffold ), which automatically creates a new Odoo module with all the necessary file and folder structure. This command generates a basic structure for an Odoo module in the specified destination, which can be a great starting point for further customization.
where to put the custom module , the path I mean ?
hello @ahmed you can add custom addons folder anywhere in odoo installation folder and then set the path in launch.json file
hello, in my case, I have to restart my odoo service so that the module is updated in the application.
But I see you didn't restart the service, how do you do that?
Hi Fakta Thanks a lot for your message. Regarding your question Fakta we have to restart our Odoo service everytime we have done any change in backend code. in my video you have not seen because i paused video recording for not wasting time and once it was restarted then i resumed. i hope i answered your question
@@odooistic ahh, okay thanks
Hello, can you please tell me how to restart the Odoo service? I don't see my app and want to try that as well, thanks
@@AndresRojas-lw9hq Hi Andres you need to press F5 or click on Run and click start Debugging.
@@AndresRojas-lw9hq Amazing! so glad to hear that 😍
Sir i don't have that odoo.xml, what can I do
Hi you need to create a new file and name is any name.xml , this is how you create an empty xml file and remember to create in views folder if you want to create forms or menus or trees
link for creation of the custom folder plz
i will definately post it to you. thx so much
@@odooistic thanks man, i'll be grateful
i cant see my module
i have added path, and restarted the server, updated applist
{
'name': 'Testingasdf',
'application': True,
}
addons_path = c:\oddo\server\odoo\addons, C:\oddo\server\custom
Confirm the module structure: Make sure that your custom module is properly structured and located within one of the specified addons paths. The module should have a valid manifest.py file and all the necessary files and directories. Update the app list: In the Odoo interface, go to the Apps menu and click on the "Update Apps List" button. This action refreshes the list of installed modules and should include your custom module if it is correctly placed in the addons paths.
@@odooistic I have created a folder named custom and a sub folder test and then two files in test folder named __manifest__.py(i have mentioned its content above) and __init__.py(this one is empty)
I tried all options even restarting computer