Odoo Help

2

1
11 Answers
7
Jaakko Komulainen Finland
4/23/15, 8:19 AM

You can create xml-file that calls ir.module.module objects update_list function. Like this:

<openerp>
    <data>
        <function model="ir.module.module" name="update_list"/>
    </data>
</openerp>


Now if you add this xml-file to module data (like you would add any other view definition or other xml-files) that update_list function gets called every time you update this module. For example you added this to a new module named "your_custom_module_updater",  so now you can start odoo with:

./odoo.py -u your_custom_module_updater 

and that module list should update every time from now on. 

*note: you still need to manually update the list for your_custom_module_updater to install it :)

3 Comments
Temur Georgia
4/23/15, 8:33 AM

nice workaround :) thanks!

Mateo Tibaquira Colombia
10/15/15, 9:21 AM

thank you very much! works nicely on v9

SunArc Technologies, Pawan Kumar Sharma India
10/4/17, 1:49 AM

For odoo10, How this command work? Because ./odoo.py not work for odoo10, we start our server with ./odoo-bin

0
Avatar

Solanki Shamji India

--Solanki Shamji--

1366
| 5 2 9
Baroda, India
--Solanki Shamji--

Hello!

Solanki Shamji India
4/23/15, 8:58 AM

Hello,

You can update module using below command.

./odoo.py -u modulename -d databasename

Thanks.

Shamji.


2 Comments
gunnar Germany
12/16/15, 10:10 PM

I guess that's valid AFTER you have stopped the server AND reside inside of /opt/odoo/odoo-server, right?

Solanki Shamji India
12/17/15, 12:13 AM

Depend on service restart. If you use --xmlrpc-port=9999 or any port than no need to stop server which are running on 8069.

0
Avatar

Hilar AK Oman

--Hilar AK--
17374
| 7 6 11
Muscut, Oman
--Hilar AK--
Experienced Odoo / Python Developer with a demonstrated history of working in the information technology and services industry with 3.5+years of experience. Skilled in Python, PostgreSQL, SQL, HTML, JavaScript. Strong engineering professional with a Bachelor of Technology (BTech) focused on Computer Science from the College of Engineering Munnar.

 Blogs:-

https://medium.com/@hilarak
https://hilarlive.wordpress.com/
 StackOverflow:
       https://stackoverflow.com/users/7561347/burmese-pythis-hilar-ak


Hilar AK Oman
2/15/18, 5:27 AM

in case of odoo 10

first grant all privileges to the db for the user.

GRANT ALL PRIVILEGES ON DATABASE "my_db" to my_user;

then open terminal ctrl + t

sudo su postgres

cd path to odoo

./odoo-bin -u module_name -d db_name


Ask a Question
Writer
3375
Temur
Keep Informed
3 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now