Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6433 Представления

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?


Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Автор

Hii Goood,very useful, thanks for your help

Related Posts Ответы Просмотры Активность
1
июл. 16
5868
8
мая 23
61567
DateTime Python Решено
4
февр. 23
71880
Datetime in Odoo Решено
2
июл. 18
7095
2
февр. 18
6971