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 {
'type':'ir.actions.report.xml',
'report_name':'models.webkit.report',
'datas':datas,
'context':context
}
Now i want to render to tree view how can i do this?
--
Thanks and Regards,
Sambasiva rao,
Cell: +91.9676622023
Skype: samba.guduru2(skype)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).