How to create custom Module in odoo 16

Sdílet
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

Komentáře • 27

  • @tassisto
    @tassisto Před 7 měsíci +1

    Applied this to Odoo 17 and it's working. Thank you sir!

  • @JustXee
    @JustXee Před rokem

    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!

    • @JustXee
      @JustXee Před rokem

      I figured it out by restarting the service. :D

    • @odooistic
      @odooistic  Před rokem +1

      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)

  • @fiq3062
    @fiq3062 Před 11 měsíci +1

    Hello, i have trouble to run debug the Odoo where it didnt open the odoo server, how to make the module is appear?

    • @odooistic
      @odooistic  Před 11 měsíci

      hi you need to set your addons path

  • @vishnus9117
    @vishnus9117 Před 4 měsíci

    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

    • @odooistic
      @odooistic  Před 3 měsíci

      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.

    • @odooistic
      @odooistic  Před 3 měsíci

      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.

  • @ahmedbenbettaieb2931
    @ahmedbenbettaieb2931 Před 9 měsíci +1

    where to put the custom module , the path I mean ?

    • @odooistic
      @odooistic  Před 9 měsíci

      hello @ahmed you can add custom addons folder anywhere in odoo installation folder and then set the path in launch.json file

  • @faktalagi
    @faktalagi Před rokem +1

    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?

    • @odooistic
      @odooistic  Před rokem

      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

    • @faktalagi
      @faktalagi Před rokem

      @@odooistic ahh, okay thanks

    • @AndresRojas-lw9hq
      @AndresRojas-lw9hq Před rokem +1

      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

    • @odooistic
      @odooistic  Před rokem +1

      @@AndresRojas-lw9hq Hi Andres you need to press F5 or click on Run and click start Debugging.

    • @odooistic
      @odooistic  Před rokem +1

      @@AndresRojas-lw9hq Amazing! so glad to hear that 😍

  • @stories__status
    @stories__status Před 9 měsíci

    Sir i don't have that odoo.xml, what can I do

    • @odooistic
      @odooistic  Před 9 měsíci

      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

  • @moncefridaoui6038
    @moncefridaoui6038 Před rokem

    link for creation of the custom folder plz

    • @odooistic
      @odooistic  Před rokem +1

      i will definately post it to you. thx so much

    • @moncefridaoui6038
      @moncefridaoui6038 Před rokem +1

      @@odooistic thanks man, i'll be grateful

  • @ramayan4017
    @ramayan4017 Před rokem

    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

    • @odooistic
      @odooistic  Před rokem +1

      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.

    • @ramayan4017
      @ramayan4017 Před rokem +1

      @@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)

    • @jaiminthejack
      @jaiminthejack Před 7 měsíci

      I tried all options even restarting computer