odoo search之时间搜索,时间段查询

<field name="date_order" string="开始时间" filter_domain="[('date_order','>',self)]"/>
<field name="date_order" string="结束时间" filter_domain="[('date_order','&lt;',self)]"/>

注:

查询时需要输入完整的日期格式,其筛选条件才会显示:

原文地址:https://www.cnblogs.com/qianxunman/p/13111160.html