Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
HI,
The field value is .
Reference field Basically stored as a :class:`string ` following the pattern "res_model,res_id" in the database. It Display as the selection . If you want to pass the value to the reference field, then you have to pass the formation value in the field where the first argument is the record model and second argument will be the id of that model.
Like:
reference_record = '%s,%s' % (res_model, res_id)
reference_field_record = '%s,%s' % ('ir.actions.act_window', 11)
Hope it will help you.
Thanks.
thanks, i also know that _name return the model name :)
Yes right. Hope it will help you.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
lip 22
|
4404 | ||
|
3
gru 21
|
4139 | ||
|
3
lip 23
|
5528 | ||
|
2
mar 24
|
5539 | ||
Unable to remove fields created by Studio
Rozwiązane
|
|
1
lis 22
|
5291 |