Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

Hello

In different modules (sale.order, project-project and so on) when posting on chatter the followers gets a message into their Notifications. The notification title is the field "displayName"  of the Object. It gets computed in the Thread JS.


I need to add the partner name here. I managed to inherit the Notification and append some text, in my example I just place the ID after the title.


    { template id="my.ThreadNeedactionPreview" t-inherit="mail.ThreadNeedactionPreview" t-inherit-mode="extension" owl="1" }
        { xpath expr="//div[hasclass('o_NotificationListItem_header')]" position="after" }
            { div }
                Object ID ID: { t t-esc="threadNeedactionPreviewView.thread.id" / }{ br / }
            { /div }
        { /xpath }
    { /template }


My problem is, that I don't have the partner_id.name in the values to output it here.


The values are computed here: addons\mail\static\src\models\thread.js


I think I need to inherit/patch the JS above and add another field... but unfortunately my JS-Skill is very basic. Could anyone help me out with this?


Thanks & best regards!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
3017
1
thg 5 22
2642
0
thg 11 19
3992
0
thg 6 15
3728
1
thg 2 25
1141