Search code examples
pythonodooodoo-11erp

upgrade option in odoo 11 module does not appear


After I install Odoo 11 and configure it successfully I make custom addons dir named custom_addons contain addon named HMS, till now no thing went wrong as I find the module after I change Odoo setting and run as a developer but after I edit the model file and add fields and save I did not find upgrade option witch allow to map model as table in database.

Can anyone help?

This is screenshot to module where there is no option to upgrade:

screenshot to module

edit(1): screenshot to logs logs screenshot


Solution

  • It looks like you are still in install / update mode. This can happen if an update fails.

    When you change your models especially when add new fields you need to restart the server before you trigger the update so the new python code is loaded into the odoo process.

    You can try to fix that by running the following command while your server is stopped: odoo -u base --stop-after-init This upgrades all modules depending on module base (which is all modules).

    After the update is successful you can start your server back up normally.