콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1414 화면

We are using {base}/web/dataset/call_kw endpoint to fetch data from multiple models.


E.g. event.event model returns following


{
  "jsonrpc": "2.0",
  "id": null,
  "result": [
    {
      "id": 72,
      "language_ids": [],
      "event_type_id": [
        70,
        "Some display name"
      ]
}
]
}

We would like to fetch numerical id only without display name. Is that possible e.g. with some context key-value pair?

For event.event model problim is not huge but res.partner.relationship is bigger issue because references to res.partner will contain user names we would not like to store outside of the Odoo.



아바타
취소
베스트 답변

The read​function has a load​ parameter set to _classic_read​ by default. To disable the use of name_get​, just set load=False​.

아바타
취소
관련 게시물 답글 화면 활동
0
3월 25
678
0
11월 23
2194
1
5월 25
560
0
9월 24
962
2
7월 24
1343