Skip to Content
Menu
This question has been flagged
1 Atsakyti
6439 Rodiniai

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?


Portretas
Atmesti
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.

Portretas
Atmesti
Autorius

Hii Goood,very useful, thanks for your help

Related Posts Replies Rodiniai Veikla
1
liep. 16
5869
8
geg. 23
61579
4
vas. 23
71890
2
liep. 18
7095
2
vas. 18
6977