Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5908 Tampilan

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
Buang
Jawaban Terbai
<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
Buang
Penulis

but nothing happened

Post Terkait Replies Tampilan Aktivitas
1
Mei 23
9949
1
Feb 24
12955
1
Jul 25
1688
1
Mei 25
1675
1
Apr 25
2265