How can I update a module through the command line? I am using linux ubuntu 22.04 even using the command ./odoo-bin -c /etc/odoo-server.conf -d demo -u my_module --addons-path=/odoo/odoo-server/addons,/odoo/custom/addons It doesn't work for me. When I make any changes to the code, the update is not done automatically, I would have to stop executing the command and then execute it again for it to work and that is what I don't want I would like to know some command or some way so that when I make any changes to the code of a module, I can see the changes immediately.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
Hi,
Refer: How To Upgrade Module From Terminal in Odoo
To get XML Changes Without Upgrading The Module in Odoo, See: https://www.youtube.com/watch?v=ZoofkhL0ph4
Thanks
Hi,
Follow the below command to upgrade a module.
./odoo-bin -u your_module -c /etc/odoo-server.conf
Also update the apps list from Apps > Update apps" and by then clicking on "Update" in the app itself.
Hope it helps
Hello Guojian Wen,
To update an Odoo module through the command line on Ubuntu and see changes immediately without restarting the server, follow these steps:
Install Python's watchdog Library:
First, install the watchdog library, which can monitor file changes:
pip install watchdog
Use the --dev=all; Option:
When running the odoo-bin command, add the --dev=all; option to automatically watch for changes in Python code and templates. The command might look like this:
./odoo-bin -c /etc/odoo-server.conf -d demo -u my_module --dev=all;
./odoo-bin -c /etc/odoo-server.conf -d demo -u my_module --dev=reload;
reload: This option automatically reloads Python code when changes are detected.
By using these methods, you should be able to see changes in your module immediately without needing to stop and restart the server.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Hi Guojian Wen,
In Odoo, if you make changes to an XML file, you need to upgrade the module and restart the server every time. However, if you make changes to a Python file, you must restart the server every time. There is no other way to see the changes immediately without restarting the server.
Thanks.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Mar 15
|
4976 | ||
|
0
Apr 17
|
3819 | ||
|
1
Dec 23
|
1834 | ||
|
1
Mar 23
|
5193 | ||
|
2
Feb 23
|
2568 |