How change format display a field in qweb report?
function in python file:
def _get_name(self,partner_id):
sql = """ select name as name1 from res_partner
where id=%s """ %(partner_id)
self.env.cr.execute(sql)
return self.env.cr.dictfetchone()
template xml:
<span t-esc="get_name(partner_id)"/>
output pdf report:
{'name1': mosao}
I want just display: mosao
please help me.
Hi Anu and Sudhir Arya, Thanks for your answer correct.