Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6440 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

Hii Goood,very useful, thanks for your help

Post correlati Risposte Visualizzazioni Attività
1
lug 16
5869
8
mag 23
61579
4
feb 23
71890
2
lug 18
7095
2
feb 18
6977