Skip to Content
Menu
This question has been flagged
1 Atsakyti
5899 Rodiniai

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


Portretas
Atmesti
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



Portretas
Atmesti
Autorius

but nothing happened

Related Posts Replies Rodiniai Veikla
1
geg. 23
9941
1
vas. 24
12944
1
liep. 25
1667
1
geg. 25
1656
1
bal. 25
2251