Odoo service is started by systemctl start odoo. I am usin Centos. When I want to update my changed *.py code I used to do like this:
1. systemctl stop odoo
Then I update my module and database by useing this:
2. ./odoo.py -c openerp-server.conf -u <my_module_name> -d <database_name>
3. stop service by ctrl + c
4. systemctl start odoo
But it's realy long and uncomfortable way to update changes.
Is there a shorter way to do the same operations in shorter way?
Odoo with Service
You can make changes like this:
systemctl stop odoosystemctl start odoo. Here the.pyare updatedxmlor some translations you can press theUpdatebutton on the Odoo interface, on the module description form.Note: There are modules to reload specific xml views. If you are interested in it I can take a look to check if I find one.
Odoo without Service
If you are developing on your local computer, you don´t need to use
systemctl. Just run Odoo directly withodoo.pyand you can see the changes immediately:Autoreload Python Files
There is another option to reload python files when they have changed. Check this other answer:
But in odoo 10 just add
--dev=reloadparamter