Skip to Content
Menu
This question has been flagged
1 Atsakyti
2865 Rodiniai

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
Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
saus. 24
2488
2
birž. 22
4433
2
birž. 18
5990
0
kov. 18
4182
2
lapkr. 16
13579