Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6424 Vizualizări

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?


Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor

Hii Goood,very useful, thanks for your help

Related Posts Răspunsuri Vizualizări Activitate
1
iul. 16
5865
8
mai 23
61562
4
feb. 23
71879
2
iul. 18
7093
2
feb. 18
6968