Closed jcdrubay closed 3 years ago
same pb with mrp.bom
odoorpc.version '0.7.0' Odoo 14.0 (Community Edition)
Bom=odoo.env['mrp.bom']
BOM.search([])
[1, 2, 3, 4,...]
BOM.browse(1)
Traceback (most recent call last):
File "
idem en v13 enterprise and mrp.bom
This can be closed, right?
Can you update the python package My current version of the PIP installation does not address this issue
You can use sudo pip install git+https://github.com/OCA/odoorpc.git@master#egg=odoorpc
instead of sudo pip install odoorpc=0.7.0
Sorry, but I am still facing that error even installing from the branch master :/
raise error.RPCError( odoorpc.error.RPCError: Invalid field 'name' on model 'base.module.update'
Then, I added a dummy field name and the issue was fixed.
Could it be because it's a TranscientModel ?
odoo_project = self._get_odoorpc(database, password)
module_update_env = odoo_project.env["base.module.update"]
log.info("Running 'Update Apps List'...")
updater_id = module_update_env.create({})
updater = module_update_env.browse(updater_id)
updater.update_module()
Interestingly, it's working when running on Odoo 12, but not on Odoo 13.
After checking more in detail, I realized that I was still using an old version of OdooRPC. After forcing uninstall of odoorpc and re-installing, it worked well. 👍
Version
OdooRPC==0.7.0 Odoo version: 14.0
Stacktrace
Workaround
Add a field
name
to the model being browsed.