Closed zobbo closed 1 year ago
That's because 15.0 renamed the function from "xmlid_to_res_model_res_id" to "_xmlid_to_res_model_res_id".
I tried changing the function here: https://github.com/OCA/odoorpc/blob/e0b959bbacac94bcdcaba2bfc8ef66bd3fc75109/odoorpc/env.py#L177-L179 But, of course, "Private methods (such as _xmlid_to_res_model_res_id) cannot be called remotely".
Anyone have a simple workaround, I mean other than the following?
ref_id = rpc.env['ir.model.data'].search([('module', '=', 'base'), ('name', '=', 'lang_en')])
lang_id = rpc.env['ir.model.data'].browse(ref_id).res_id
Isn't there any public replacement in ir.model.data?
Fixed in https://github.com/OCA/odoorpc/pull/79 , will be merged soon and published in the release v0.9.0.
v 0.8.0 of odoorpc, server community edition 15.0
trying to get records with external ids and following the example in the docs - I get the following: