gpt4 book ai didi

postgresql - Odoo filter postgres view 使用向导数据报告日期

转载 作者:行者123 更新时间:2023-11-29 12:24:41 24 4
gpt4 key购买 nike

我正在尝试在 Odoo v10 中创建 postgres View 报告,数据将是正确的,但问题是使用向导按日期过滤数据。例如,这里是默认的 Postgres View 字段。

id emp_name start_date end_date

1 美国广播公司 10/1/2017 10/31/2017

2 XYZ 11/1/2017 11/31/2017

3 MNP 1/1/2018 1/31/2017

我正在创建一个包含字段 start_date 和 end_date 的向导。我想使用向导 start_date 和 end_date 过滤 postgres View 记录。

最佳答案

试试这个

<span t-usertime="%Y-%m-%d %H-%M-%S" /> 

<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')"/>

希望对你有帮助。

谢谢

关于postgresql - Odoo filter postgres view 使用向导数据报告日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47055155/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com