Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3282 Представления

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
янв. 19
8847
0
дек. 24
1315
0
дек. 24
1139
2
июл. 24
3097
2
мар. 22
12040