How to redirect to another view through Odoo v8 API
时间:2015-03-26 16:41:50
收藏:0
阅读:705
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.
原文:http://www.cnblogs.com/kfx2007/p/4368704.html
评论(0)