Hi,
return self.env['report'].get_action(self, 'my_module_my_template', data=datas)
I passed python dictionary in data. But it is None when I print in Xml.
<t t-esc="data"/>
Can anyone explain how can I solve this ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
return self.env['report'].get_action(self, 'my_module_my_template', data=datas)
I passed python dictionary in data. But it is None when I print in Xml.
<t t-esc="data"/>
Can anyone explain how can I solve this ?
First check in python,
print datas
check any entries in datas,
if yes,
data['form']['department']Use like this, its may works,
<t t-if="data['form']['department']">
<h3><t t-esc="data['form']['department']"/></h3>
</t>
I have tried this. data is considered as None Type
do make print in the python?
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
|
1
huhtik. 25
|
1865 | ||
|
|
2
maalisk. 25
|
2437 | ||
|
|
4
marrask. 24
|
7835 | ||
|
|
1
maalisk. 24
|
2715 | ||
|
|
3
syysk. 23
|
25723 |