There is new feature added on gtk client (will available in etiny soon) for submenu.
Now user can have submenus on the top of the form view (inside the tab).For this there is one new action type (ir.actions.submenu) defined on ir.actions.act_window, which allow user to make different submenus on one form:
As shown in below example in form view for project, user can manage all information (Tasks,Timesheet,Bugs,…Dashboard) of project from a single point of view and navigate easily for each links available for the project!
You can define your submenu action like this:
<record model=”ir.actions.act_window” id=”view_project_project_portal”>
<field name=”name”>Project Form</field>
<field name=”res_model”>project.project</field>
<field name=”type”>ir.actions.submenu</field>
<field name=”view_type”>form</field>
<field name=”context” eval=”{’action_portal’:'project’}”/>
<field name=”menus”>
[{'name':'Tasks','action_id':'action_portal_project_task','icon':'terp- project'}, {'name':'Timesheets','action_id':'act_hr_timesheet_sheet_portal_form','icon':'terp-hr'},.........
{'name':'Dashboard','action_id':'view_project_project_portal','icon':'terp-graph'}]
</field>
</record>
Server side improvement
New attribute added on fields_view_get method (trunk)
Old definition: def fields_view_get(self, cr, user, view_id=None, view_type=’form’, context=None, toolbar=False)
New definition: def fields_view_get(self, cr, user, view_id=None, view_type=’form’, context=None, toolbar=False, submenu=False)
You can have latest client/server to use this functioanality from launchpad.. lp:openobject-server, lp:openobject-client
Enjoy new feature!
Thanks,