Odoo Help


This community 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.


How can i render to tree view from function?

on 12/12/14, 3:43 AM 936 views

I am showing a wizard. Based on the wizard inputs i am  changing database view content. But i unable to render to that tree view of that veiw. How can i do this in odoo-7? For example to render  rml report i can use a return statment like

return {


Now i want to render to tree view how can i do this?

Thank you Ivan..
But it is giving just data.. basic functionality of tree view is not there.. Any this is helping me some what better. I am facing the problem with passing wizard data to a database view method. I am showing a wizard. That wizard calls an action, it is a view action. That action calls the init(self,cr) method. Does it possible to send wizard data to this method as an extra parameter. For example i am showing date in the wizard i want to pass that date to this init(self,cr,date).

On Fri, Dec 12, 2014 at 4:09 PM, Ivan <niecw@mail.odoo.com> wrote:

A new answer for How can i render to tree view from function? has been posted. Click here to access the post.

Sent by Odoo Inc. using Odoo about Forum Post How can i render to tree view from function?


Thanks and Regards,

Sambasiva rao,

Cell: +91.9676622023

Skype: samba.guduru2(skype)
on 12/12/14, 6:32 AM

You can create the wizard first (using create method) and then pass the return of the create method as a domain when you call the action. This way you can set whatever data beforehand. But I don't quite get what you want from passing the information to init. Maybe if you explain the end result that you want, I can help you better. Sample for creating the wizard first and displaying it can be found in the open_invoice method of addons/stock/wizard/stock_invoice_onshipping.py (the sample creates invoice first and display it. The same concept can be used).

on 12/12/14, 7:05 AM


| 5 3 6
Jakarta, Indonesia
On 12/12/14, 5:39 AM

Technically you can't render a tree view.  What you can do is to call ir.actions.windows and let configure the action to call a tree view.  Sample for this can be found in odoo/addons/account_voucher/invoice.py.

On 12/12/14, 6:31 AM

make our button to do this..

  return  {

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 12/12/14, 3:43 AM
Seen: 936 times
Last updated: 3/16/15, 8:10 AM