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!