Skip to Content
Menu
This question has been flagged

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
jan 19
8855
0
dec 24
1327
0
dec 24
1152
2
júl 24
3114
2
mar 22
12058