Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
12626 Vizualizări

Hi friendz,

My requirement is to show E-mail corresponding to Partners, so I created a button to call the window of Archives of Messaging in new WINDOW.

  <button name="%(mail.action_mail_archives_feeds)d" type="action" target="new" context="{'viewmessages':True}" string="Messages" groups="base.group_user" />

This does not provide bread crumbs to backtrack the customer in which it were opened. and also It does not open in a new Window with target="new".

Is there any method to do this.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can create your own method and return the action you wish to open from the button.

@api.multi
def action_open_mail(self):
action = self.env.ref('mail.action_mail_archives_feeds').read()[0]
action.update({'target': 'new'})
return action

This could solve your problem.

Sudhir Arya
ERP Harbor Consulting Services
sype: sudhir@erpharbor.com  website: http://www.erpharbor.com
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
ian. 24
14302
2
mar. 18
5117
0
ian. 18
3247
2
feb. 24
25693
3
feb. 25
55599