When you delete the module that already existed in odoo, you will meet KeyError problem.
Solution: delete ir_model table that the model column is equal to the model name and restart -u module
When you delete the module that already existed in odoo, you will meet KeyError problem.
Solution: delete ir_model table that the model column is equal to the model name and restart -u module
after switching to python3 virtual env, use env python to upgrade and install package
(env39) [vagrant@localhost bin]$ sudo /env39/bin/python -m pip install --upgrade pip
Master view
<field name="book_dtl_ids" colspan="4" context="{ 'default_submit_deptmst_id': submit_deptmst_id}"/>