Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2804 Visualizzazioni

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
Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 24
2403
2
giu 22
4363
2
giu 18
5922
0
mar 18
4139
2
nov 16
13456