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
2583 Widoki

Hi,

I'm trying to call the REST XMLRPC API from PHP with parameters. All is working well except date/datetime fields are returned as false when they should be null. I found that there were an option tz, but it's not working with that. Is it possible to do that somehow with parameters?

[
  'method' => 'search_read',
  'kwargs' => [
    'fields' => ['example'],
    'context' => [
      'tz' => 'UTC',
    ],
  ],
]

documentation/16.0/developer/reference/external_api.html

Thank you
Awatar
Odrzuć
Najlepsza odpowiedź

With xmlrpc in Odoo, null cannot be marshalled, so Odoo will usually return false to represent the absence of a value.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 24
2061
2
cze 22
3968
2
cze 18
5661
0
mar 18
3877
2
lis 16
13017