Odoo Help


How to make Button call Client action in a new window?

Atchuthan - Technical Consultant, Sodexis Inc
on 12/24/13, 8:01 AM 3,279 views

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.


Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 12/11/17, 11:58 PM


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

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/24/13, 8:01 AM
Seen: 3279 times
Last updated: 12/11/17, 11:58 PM