Hi all, I just want update my module through command line. I am using odoo V11 and Pyhton3. I can't update from the front end, So i want to update apps from command line in ubundu server.?
Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi kn,
First stop your Odoo service:
sudo service odoo-server stop
Then navigate into your Odoo folder and run it from the command with the modules you'd like to update:
./odoo-bin -u your_module -c /etc/your-odoo.conf
When you run this command it'll update all your modules and you can update everything you'd like. Afterwards you can stop the terminal and restart your Odoo service:
sudo service odoo-server start
Regards,
Yenthe
Running ./odoo-bin -u all -c /etc/your-odoo.conf
gave the following long error , for odoo 10.0CE , i had to force ctrl+c to stop it.
What's happening ? how to solve this? the goal was updating all modules.
TypeError: not all arguments converted during string formatting
Logged from file http.py, line 1528
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
return fmt.format(record)
File "/odoo/odoo-server/odoo/netsvc.py", line 102, in format
return logging.Formatter.format(self, record)
File "/usr/lib/python2.7/logging/__init__.py", line 465, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file http.py, line 1531
./odoo-bin -u your_module -c /etc/your-odoo.conf
just try with add -d with <databasename>
./odoo-bin -d your_database_name -u your_module -c /etc/your-odoo.conf
Small tip, to update all modules instead use this:
./odoo-bin -u all -c /etc/your-odoo.conf
can this update to higher odoo version ? like odoo 13?
This commands only for updating the modules. its not upgrade to higher versions. This command is also work in V13 to update the modules.
Have a look at this video explanation: https://www.youtube.com/watch?v=ErzOia_A21w