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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
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.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
mrt. 15
|
5150 | ||
|
0
apr. 17
|
4023 | ||
|
1
dec. 23
|
2138 | ||
Update all odoo modules at once
Opgelost
|
|
1
mrt. 23
|
5474 | |
|
2
feb. 23
|
2837 |