İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6438 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Hii Goood,very useful, thanks for your help

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 16
5868
8
May 23
61575
DateTime Python Çözüldü
4
Şub 23
71884
Datetime in Odoo Çözüldü
2
Tem 18
7095
2
Şub 18
6973