Skip to Content
Menu
This question has been flagged
1 Reply
5158 Views

Hello,


I am trying to update a custom module adding new Boolean field. However, when I restart my service it gives me an error that this field doesn't exist.

I've tried to uninstall the app and install it again and it works correctly, however, I've lost my data after uninstall it.

Does anyone know how to update it without uninstall the app?


Thank you.

Avatar
Discard

In come cases, I had to restart db as well, whatever changed in python, I would restart both db and odoo, then upgrade the app.

Best Answer

Hi Victor,

If you want to add new fields to an Odoo install you will need to make sure you have done the following things:

- Added the custom module in the Odoo configuration file under /etc/
- Inherited the Odoo module and model in which you want to add the custom field
- Restarted the Odoo instance
- Updated the app (either from the apps list by clicking on "Update apps list" then searching your app and updating it or from the command line with "./odoo-bin -u your_module -c /etc/your-odoo-server.conf".

If you have configured the paths correctly and if you've updated the module it will work just fine. You can find more information about this subject in the official documentation


Regards,
Yenthe

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 22
6554
0
Mar 24
2091
3
Jan 18
4690
2
Dec 23
8623
3
Oct 16
5690