コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2852 ビュー

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
アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 24
2466
2
6月 22
4407
2
6月 18
5969
0
3月 18
4174
2
11月 16
13549