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

Hello:

I have a controller that renders purchase.order using my custom QWEB template; I want to add the messaging at the bottom but can't figure out what widget (widget="mail_thread") and/or class (class="oe_chatter") to use on QWEB.

Adding this code to my QWEB: 

<div class="oe_chatter">
            <span t-field="order.message_follower_ids" widget="mail_followers"/>
            <span t-field="order.activity_ids" widget="mail_followers"/>
            <span t-field="order.message_ids" widget="mail_thread"/>
        </div>

just displays:
mail.followers(702, 708, 711) mail.activity() mail.message(1738, 1737, 1736, 1735, 1734, 1732, 1731, 1729, 1728, 1722, 1721, 1720)

And adding

 <div class="oe_chatter">
            <t t-foreach="order.message_ids" t-as="rec"> 
                <t t-esc="rec.body" widget="mail_thread"/>
            </t>
        </div>

Just displays the msg HTML code with no format.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 19
8853
0
ديسمبر 24
1326
0
ديسمبر 24
1149
2
يوليو 24
3110
2
مارس 22
12054