如何在ODOO中获取特定日期的Calendar(calendar.event)会议? [英] How to fetch Calendar (calendar.event) meetings for particular date in ODOO?

查看:312
本文介绍了如何在ODOO中获取特定日期的Calendar(calendar.event)会议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在ODOO中获取特定日期或从日期到日期"的日历(calendar.event)会议/事件吗?

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

到目前为止,我已经阅读了使用会议ID进行的会议,如下所示:

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

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

在上面的输入参数125中是我的会议ID.因此,我获得了该特定会议ID的记录.但是现在我想根据日期记录会议.

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 ?

推荐答案

您正在访问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']]

这篇关于如何在ODOO中获取特定日期的Calendar(calendar.event)会议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆