首页 > Windows开发 > 详细

How to redirect to another view through Odoo v8 API

时间:2015-03-26 16:41:50      阅读:705      评论:0      收藏:0      [点我收藏+]

As we all know, in v7 we have get_object_reference method to get what we wanted record in xml id. Instead of this method in v8 is:

1. xml_to_res_model_res_id

2.xml_to _res_id

3.xml_to_object

 

And we can easy get ir.actions.act_window action through method:

1. for_xml_id(model,xml_id)

 

when we got this object we can redirect our view via returning it.

How to redirect to another view through Odoo v8 API

原文:http://www.cnblogs.com/kfx2007/p/4368704.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!