Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

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!

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 22
3012
1
kvě 22
2638
0
lis 19
3991
0
čvn 15
3728
1
úno 25
1140