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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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',
}
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
2
mrt. 24
|
28961 | |||
|
0
mrt. 15
|
6697 | |||
|
1
mrt. 15
|
11611 | |||
|
3
mrt. 15
|
9639 | |||
|
1
mrt. 15
|
11010 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.