Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5884 Vues

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
Ignorer
Meilleure réponse
<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
Ignorer
Auteur

but nothing happened

Publications associées Réponses Vues Activité
1
mai 23
9928
1
févr. 24
12933
1
juil. 25
1651
1
mai 25
1622
1
avr. 25
2234