Skip to Content
Menu
Dette spørgsmål er blevet anmeldt

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?


Avatar
Kassér
Bedste svar

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.

Avatar
Kassér
Forfatter

Hii Goood,very useful, thanks for your help

Related Posts Besvarelser Visninger Aktivitet
1
jul. 16
5870
8
maj 23
61600
4
feb. 23
71918
2
jul. 18
7096
2
feb. 18
6982