跳至内容
菜单
此问题已终结

I have a field type datetime.

date=fields.Datetime('Request date',default=fields.Date.today, required=True,readonly=True,copy=True)

When I duplicate, the field date copy the date of created not the current date when I duplicate.

I want to duplicate the field with current date. Can I duplicate the date with the current date?


形象
丢弃
最佳答案

hello,

You may try like this(copy=False):

date=fields.Datetime('Request date',default=fields.Date.today, required=True,readonly=True,copy=False)

Hope this will help you.

形象
丢弃
编写者

Hii Goood,very useful, thanks for your help

相关帖文 回复 查看 活动
1
7月 16
5865
8
5月 23
61561
4
2月 23
71878
2
7月 18
7093
2
2月 18
6967