How to fetch Calendar (calendar.event) meetings for particular date in ODOO?

送分小仙女□ 提交于 2019-12-11 12:26:12

问题


Does anybody know how to fetch Calendar (calendar.event) meetings/events for particular date OR "from date to date" in ODOO ?

Till yet i have read meetings using meeting Ids as follow:

(
Sample DB Name,
1,
Password,
calendar.event,
read,
(
125
)
)

In above input parameter 125 is my meeting Id. So i get records of that particular meeting id. But now i want the meetings record based on dates.

So how can i achieve this ? What will be the inputs for this ?


回答1:


You are accessing the Odoo External API. The read method is to be used when you know the id for the records to fetch.

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']]


来源:https://stackoverflow.com/questions/30024408/how-to-fetch-calendar-calendar-event-meetings-for-particular-date-in-odoo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!