Closed ginogervasio closed 4 years ago
Same error here when attempting to browse mail.message on Odoo 13.
Hello there. I found why this issue is raised, I badly written this part of the code: https://github.com/OCA/odoorpc/blob/master/odoorpc/env.py#L338-L342
It should be display_name
instead of name
. I checked and it was already like that in Odoo 8.0: https://github.com/odoo/odoo/blob/8.0/openerp/models.py#L522
I will fix it soon.
@ginogervasio @JulienCochuyt try to update OdooRPC from the master
branch, the fix has been merged. The release will come later.
@sebalix, thanks for the fix. I can confirm the issue can no longer be reproduced on our side when using the latest master. Would you yet have a schedule for the next release to be pushed to PyPi?
I get this error when I try to browse the
stock.quant
model on Odoo 13:odoorpc.error.RPCError: Invalid field 'name' on model 'stock.quant'
I traced it to line 361 of
models.py
in the_init_values
function. I noticed that thename
field ofstock.quant
is of typeodoorpc.fields.Text
while others likeproduct.product
orres.partner
have aname
field of typeodoorpc.fields.Char
.Since I needed it for a demo, I added a type check in my local machine that skips the
name
field in the_init_values
function if it is an instance ofodoorpc.fields.Text
but I know this is not pythonic: