تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6021 أدوات العرض

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


الصورة الرمزية
إهمال
أفضل إجابة
<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



الصورة الرمزية
إهمال
الكاتب

but nothing happened

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 23
10125
1
فبراير 24
13131
1
يوليو 25
1964
1
مايو 25
2054
1
أبريل 25
2485