Tuesday, June 30, 2009

New action ‘Submenu’, fields_view_get API change

Hello all,

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)
Client side Improvement
There is new feature added on gtk client (will available in etiny soon) for submenu.
Now we can have submenus on the top of the form window (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:
screenshot-1
So here 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 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>

You can have latest client/server to use this functioanality from launch pad..
Enjoy new feature!


Thanks,
OpenERP Team

0 comments:

Post a Comment