Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

Hii Goood,very useful, thanks for your help

Publications associées Réponses Vues Activité
1
juil. 16
5865
8
mai 23
61562
4
févr. 23
71879
2
juil. 18
7093
2
févr. 18
6968