寰智博客

  1. 首页
  2. 技术教程
  3. odoo 开发学习笔记
  4. 正文

字段 Datetime

2022年5月7日 695点热度 0人点赞 0条评论

把时间戳转换成客户端时区,这并不是对其初始化,他只是在客户端显示,如果要初始化,需要fields.datetime.now() 来取代
时间戳(datetime),datetime 能够被转换成客户端时区 (UTC中显示)

date_order = fields.Datetime(string='单据日期')

标签: 暂无
最后更新:2022年5月7日

SudemQaQ

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 blog.szhcloud.cn 寰智博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

苏ICP备16064625号-1

本站使用 又拍云 Logo 提供CDN加速/云存储服务