Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4295 Visualizzazioni

Hi there,

I'm building  a custom app that inherits res.partner model and has a few functions defined. Now i want to call those child class functions from xml file which inherits a view and modifies a few fields. Also i want to access the value of those variables which are present inside that child class functions, how can i achieve that?

I have tried calling that function using <function> tags and also used  <span t-esc = "o.function_name"/> but both approaches ended up in throwing errors saying that function was not found in the parent view.

any help is appreciated.

Thank you

P.S: I want to access the value of the variables in the xml file inside the <xpath> tag

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 24
2244
5
lug 24
94831
1
dic 23
3621
1
mag 22
4613
0
gen 20
3330