跳至內容
選單
此問題已被標幟
1 回覆
3260 瀏覽次數

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
3142
2
6月 22
5090
2
6月 18
6565
0
3月 18
4630
2
11月 16
14423