Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1248 Widoki

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.



Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 25
588
0
lis 23
2054
1
maj 25
411
0
wrz 24
877
2
lip 24
1241