Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2872 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 24
2505
2
มิ.ย. 22
4454
2
มิ.ย. 18
6011
0
มี.ค. 18
4187
2
พ.ย. 16
13599