更新时间:2023-01-29 20:12:50
您正在访问Odoo外部API.
当您知道要提取记录的id
时,将使用read
方法.
You are accessing the Odoo External API.
The read
method is to be used when you know the id
for the records to fetch.
要获取基于条件的记录,您应该使用 ids
.
To get records based on a condition you should use search_read
and pass it a domain expression instead of the record ids
.
作为说明,您需要的域可能看起来像:
As an illustration, the domain you nedd could look like:
[['start_datetime', '>=', '2015-04-29 00:00:00'],
['start_datetime', '<', '2015-04-30 00:00:00']]