Saadalla
Saadalla

Reputation: 81

Why doesn't my new Odoo module show up on the module list?

I am using Odoo v12 on Windows. I have followed the steps in HowTo to create a module Saadoodoo. My problem is that I have failed to make this new module appear on the Odoo module list.

I am using the below command

python.exe odoo-bin" -d SaadoIncLocal -i Saadoodoo --addons-path D:\PythonDev\Odoo

It seems Odoo simply ignores the commands and starts the server normally, as the module does not appear on the apps list (even when selecting developer mode).

I thought the issue may be in the addon path, so I added the module under the default Odoo path along with Odoo modules in C:\Program Files (x86)\Odoo 12.0\server\odoo\addons and did an apps update on Odoo interface but still problem persists. Starting and stopping the server does not help either.

What am I doing wrong?

Upvotes: 3

Views: 5962

Answers (8)

Khoer Rizal
Khoer Rizal

Reputation: 1

Have you click Update App List in menu Apps? This is screenshot from Odoo 11, it should applied in Odoo 12 but may be different position.

enter image description here

Upvotes: 0

Abdul Rafay
Abdul Rafay

Reputation: 1

Use this command to create module in odoo.

odoo-bin scaffold mynewmodule addons

directive command module-name modulepath

Upvotes: 0

trvlprogrammer
trvlprogrammer

Reputation: 1

using mode debug, go to your apps, click update app list

Upvotes: 0

Saumil gauswami
Saumil gauswami

Reputation: 725

  • Go to your odoo-version folder (ex: cd /home-path/odoo-09.0/10.0/11.0/12.0/13.0) where your odoo-bin file is placed (till odoo-10.0 the file is openerp-server but in later version the file is odoo-bin)
  • Run the command ./odoo-bin scaffold yourModuleName destinationDirectory (odoo_version >= 10)
  • Run the command ./openerp-server scaffold your_module_name destinationDirectory (odoo_version < 10)

please use configuration file to run odoo(it's quite easy without any mistake)

run this command: python3 odoo-bin --save --config odoo.cfg --stop-after-init

that will save odoo.cfg file open it up and add your custom module path in addons_path varibale which is defined in top of configuartion file

Upvotes: 0

Abdifatah Mohamed
Abdifatah Mohamed

Reputation: 357

Oh once your module is ready, go to the Odoo directory in windows, navigate to custom-addons and you will see a list of all the available modules. paste your new module in there. Now open the Odoo again, go to Apps, then update module list. Then search for your app in the app list. Make sure the developer mode is activated

Upvotes: 0

kuldeep Mishra
kuldeep Mishra

Reputation: 238

There could be 2 Reasons that you are not able to see the module :-

1. You have not updated the database

Two ways to update the database :-

1.1 from Terminal use this command to update the module and database

./odoo-bin -c debian/odoo.conf -d {NAME_OF_ODOO_DATABASE} -u {NAME_OF_THE_NEW_MODULE}

1.2. From frontend

By activating the developer mode by going to Setting --> under the developer tools option --> Activate the developer mode

Now go to app list and select the option update app list.

2. You have not configured the addons path in the debian/odoo.conf file

Make sure that you have added the addons_path of the custom-addons folder in odoo.conf file inside debian folder

enter image description here

Upvotes: 1

Mohammad Reza
Mohammad Reza

Reputation: 135

why don't you simply use these commands

cd C:\Program Files (x86)\Odoo 12.0\server\odoo\addons    
C:\Program Files (x86)\Odoo 12.0\python\python.exe C:\Program Files (x86)\Odoo 12.0\server\odoo-bin scaffold my_module --config C:\Program Files (x86)\Odoo 12.0\server\odoo.conf

Upvotes: 0

arryph
arryph

Reputation: 2825

After adding new module in the addons_path, you have to turn on debug/developer mode, goto Apps > Update modules list, remove Apps filter from search and search your module.

Don't forget to add __manifest__.py with proper data, which is important for odoo addons.

If still having problem, you can use scaffold option of odoo-bin to create empty module.

python.exe odoo-bin scaffold my_module

This is will create a empty module with all the necessary skeleton files in the current working directory, you can just move it to addons folder, rename the variables accordingly and files and you are good to go.

Upvotes: 12

Related Questions