Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2787 Tampilan

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
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jan 24
2374
2
Jun 22
4326
2
Jun 18
5901
0
Mar 18
4119
2
Nov 16
13416