8.0 chat2 jem

You may use xmlid_to_res_id, the newer (and cleaner) API of ir_model_data.