Hi,
I want to add some searching functionality to my app. I made code xml and code for entering search parameters and it's all ok, except I dont have Create button in my result tree (see picture below)
I use this pice of code for showing my search results:
return {
'name': sql_query,
'type': 'ir.actions.act_window',
'view_mode': 'tree,form',
'res_model': 'pio.request',
'target': 'new',
'domain': domain,
'nodestroy': True,
}
http://screencast.com/t/wy6bfa7CD9
Instead that red frame I should have Create button.
In XML it should be simple- <tree create='true'...> but this is python...
How to do that?
And another thing- can someone point me towards some explanation about this 'return-parameters'. I know we have target, nodestroy, domain, view_type etc... but I don't know them all...