[ADD] Added a menu entry in Settings/Users, along with a tree view definition.
bzr revid: tde@openerp.com-20120315100542-xhlvb43lda9d3a0m
This commit is contained in:
parent
632c5e3036
commit
6808cd7e53
|
@ -12,6 +12,8 @@ This class also offers several global services,:
|
|||
|
||||
This mechanism is used for instance to display the number of pending actions in menus, such as Leads (12).
|
||||
|
||||
A menu in Settings/Users has been added to allows having a quick look to need_action_user_ids.
|
||||
|
||||
Addon implementation example
|
||||
++++++++++++++++++++++++++++
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
],
|
||||
'update_xml': [
|
||||
'base_update.xml',
|
||||
'base_needaction_view.xml',
|
||||
'ir/wizard/wizard_menu_view.xml',
|
||||
'ir/ir.xml',
|
||||
'ir/ir_config_parameter_view.xml',
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="view_notification_tree">
|
||||
<field name="name">base.needaction_users_rel.tree</field>
|
||||
<field name="model">base.needaction_users_rel</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="sequence">10</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Subscription">
|
||||
<field name="user_id"/>
|
||||
<field name="res_model"/>
|
||||
<field name="res_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_view_needaction_users_rel" model="ir.actions.act_window">
|
||||
<field name="name">Need action relationships</field>
|
||||
<field name="res_model">base.needaction_users_rel</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_needaction_users_rel" name="Need actions" parent="base.menu_users" sequence="20" action="action_view_needaction_users_rel" groups="base.group_extended"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue