Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jan 19
8848
0
Des 24
1317
0
Des 24
1142
2
Jul 24
3098
2
Mar 22
12042