Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3242 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
janv. 24
3115
2
juin 22
5068
2
juin 18
6555
0
mars 18
4621
2
nov. 16
14418