Hi
Someone has tried to fill a reference field by default? How to do it?
Thanks in advanced.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
Someone has tried to fill a reference field by default? How to do it?
Thanks in advanced.
Hi @Alexei
The value of the reference fields is composed by the model of the reference selection model and the id of that model. For example to put the user admin value in a reference to res.users as one of the possible models, you could put it like this:
'res.users,1'
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 19
|
98 | ||
|
1
Jul 17
|
2967 | ||
|
4
Aug 16
|
6627 | ||
|
1
May 16
|
3616 | ||
|
2
Mar 16
|
6268 |