Skip to Content
मेन्यू
This question has been flagged
1 Reply
5922 Views

I tried to add a condition to QWEB template "ControlPanel" to show a field which is project_id.description.

<t t-extend="ControlPanel">
<t t-jquery="div.container-fluid" t-operation="after">
<t t-if="widget.field_manager.dataset._model.name == 'project.task'">
<div><field name="project_id.description"/></div>
</t>
</t>
</t>

This doesn't work

My Odoo version is 9 community edition


Avatar
Discard
Best Answer
<t t-if="doc_model in ['project.task']"> 
<div><field name="project_id.description"/></div>
</t>    

For a full list of variables supported in QWEB views, see:

https://www.odoo.com/documentation/11.0/reference/reports.html



Avatar
Discard
Author

but nothing happened

Related Posts Replies Views Activity
1
मई 23
9954
1
फ़र॰ 24
12971
1
जुल॰ 25
1711
1
मई 25
1708
1
अप्रैल 25
2281