Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6415 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

Hii Goood,very useful, thanks for your help

Related Posts Odpovědi Zobrazení Aktivita
1
čvc 16
5865
8
kvě 23
61560
4
úno 23
71878
2
čvc 18
7093
2
úno 18
6965