How can I access the variable from a function? For example:
def get_data(self):
var = "I am a variable"
Then I would like to get the data of var
from that function and put it to my report.
And this is what I did:
<span t-esc"o.get_data(var)"/>
But I am facing an error like TypeError: get_data() takes 1 positional argument but 2 were given.
Any idea on how to achieve this?