Saloua SAHNOUNE
Saloua SAHNOUNE

Reputation: 205

Update odoo module from command line

Please, I need help, I am trying to update my module list in Odoo 11 from the command line.

I try these three commands:

==> -c ./etc/odoo-server.conf -u module_name -d database_name

==> ./odoo.py -u module_name

the solution in this link: https://gist.github.com/holdenrehg/9fd3f8596611bbfc45aea13d6315d4f4

but nothing has worked.

Upvotes: 0

Views: 10614

Answers (3)

Anitha Das B
Anitha Das B

Reputation: 372

Please move to the location where odoo-bin exist and use the below command

./odoo-bin -c /etc/odoo-server.conf --db-filter='data_base_name' -u module_name

Upvotes: 0

Saloua SAHNOUNE
Saloua SAHNOUNE

Reputation: 205

cd odoo-server/

./odoo-bin -c /etc/odoo-server.conf -d data_base_name -u module_name

Upvotes: 2

Travis Waelbroeck
Travis Waelbroeck

Reputation: 2135

The "Update Apps List" button triggers creation of a "Module Update" wizard. The wizard has a button, "Update", which runs the update_module method. The only important thing that update_module does is to call update_list against ir.module.module.

You can simulate this via shell with the command below, but I'm not sure there's a way to do it directly from the command line in an automated way.

self.env['ir.module.module'].update_list()

Upvotes: 1

Related Questions