Hi everybody,
I'm writing you to ask how to write the formula to access a one2many item internal field.
To be more precise I need to set the "auto_fill" field formula in a Odoo Sign signature item type that is linked to a Contact (so that the module to be signed can be autocompleted with the Contact data I am sending the module to).
I can easily set the "auto_fill" for fields directly belonging to the Contact (res.partner table) and I also found the way to set the decode for many2one fields (e.g. I can get the autofill for the state code setting the formula as "state_id.code", where state_id is the external reference to the res.country.state table.
Now I'm trying to set the "auto_fill" on a signature item type for a field belonging to an item in the "child_ids" one2many collection of the Contact (res.partner) object.
I've tried to set it in several ways (e.g. "child_ids[0].name", child_ids[0].["other"].name, child_ids[0].partner_id.name, child_ids[0].child_id.name ...) but it does not work. How should it be written?
Please take note that I personally can't go deep in view to code so I have no clue about how the code of Contact module is written and how the Contact model is structured...
I know that "child_ids" is a one2many property of the Contact and that refers to a collection of Contacts but I'm missing something...
Thank you if you can help me.
Dario
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
2512
Widoki
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ść | |
---|---|---|---|---|
Get the values of one2many field
Rozwiązane
|
|
1
cze 22
|
2470 | |
|
1
cze 22
|
1585 | ||
|
1
kwi 24
|
1341 | ||
|
1
paź 23
|
1467 | ||
|
1
maj 23
|
1986 |