Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6436 Prikazi

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
Opusti
Best Answer

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
Opusti
Avtor

Hii Goood,very useful, thanks for your help

Related Posts Odgovori Prikazi Aktivnost
1
jul. 16
5868
8
maj 23
61568
4
feb. 23
71882
2
jul. 18
7095
2
feb. 18
6973