hi guys, I want to show a field in the res.partner form view but the field is in another object. How can i do to show it in that view? Thanks a lot for your answers
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
1
Odpowiedz
3706
Widoki
Hi,
You must define a field type function in res.partner. and in this function get information in another object.
def _get_other(self,cr,uid,ids,field,arg,context=None):
res={}
//your treatment
return res
_columns = {
'other': fields.function(_get_other, method=True, type='float',string='Info other'),
}
Thank 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ść | |
|---|---|---|---|---|
|
|
4
sty 24
|
24056 | ||
|
Attrs attribute
Rozwiązane
|
|
2
sty 24
|
2976 | |
|
|
0
sie 23
|
2827 | ||
|
Not displaying the form and tree view
Rozwiązane
|
|
5
wrz 21
|
18267 | |
|
|
3
sty 21
|
18677 |