コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
12608 ビュー

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.

アバター
破棄
最善の回答

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
アバター
破棄
関連投稿 返信 ビュー 活動
1
1月 24
14257
2
3月 18
5062
0
1月 18
3174
2
2月 24
25634
3
2月 25
55534