Hi guys !
I want to add a field who has all the time the same value (for every objects of his class).
How can i do that ?
Thanks.
Hi guys !
I want to add a field who has all the time the same value (for every objects of his class).
How can i do that ?
Thanks.
You can create a field in python like that :
_columns = {
'my_field' : fields.char('My static field', size=64),
}
_defaults = {
'my_field': lambda *a: 'The default value',
}
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
2
мар. 24
|
31138 | |||
|
0
мар. 15
|
8141 | |||
|
1
мар. 15
|
12620 | |||
|
3
мар. 15
|
11270 | |||
|
1
мар. 15
|
12549 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.