Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3305 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jan. 19
8855
0
dez. 24
1327
0
dez. 24
1152
2
jul. 24
3114
2
mar. 22
12058