且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在ODOO中获取特定日期的Calendar(calendar.event)会议?

更新时间: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']]