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',
}
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
2
März 24
|
31234 | |||
|
0
März 15
|
8201 | |||
|
1
März 15
|
12681 | |||
|
3
März 15
|
11330 | |||
|
1
März 15
|
12607 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.