Skip to content
Snippets Groups Projects
Commit c51fa33a authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Add a new board for alerts

parent bd42fe99
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
'board',
],
'data': [
'data/alert_board.xml',
'test_action.xml',
],
'installable': True,
......
......@@ -14,9 +14,8 @@
data_obj = self.pool.get('ir.model.data')
board_view = data_obj.get_object(
cr, uid,
'board',
# TODO Register a new board for alerts and use its ID.
'board_my_dash_view',
'board_alerts',
'alert_board',
context=context
)
......
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- Define the board the user can drag views into that will be used to send
emails. Imitated from the definition of the "My Dashboard" board in board/board_mydashboard_view.xml. -->
<record id="alert_board" model="ir.ui.view">
<field name="name">My Alerts</field>
<field name="model">board.board</field>
<field name="arch" type="xml">
<form string="My Alerts" version="7.0">
<board style="2-1">
<column />
</board>
</form>
</field>
</record>
<record id="action_alert_board" model="ir.actions.act_window">
<field name="name">My Alerts</field>
<field name="res_model">board.board</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="usage">menu</field>
<field name="view_id" ref="alert_board" />
<field name="help" type="html"><![CDATA[
<div class="oe_empty_custom_dashboard">
<p>
<b>Your alert dashboard is empty.</b>
</p><p>
To add your first report into this dashboard, go to any
menu, switch to list or graph view, and click <i>'Add to
Dashboard'</i> in the extended search options.
</p><p>
You can filter and group data before inserting into the
dashboard using the search options.
</p>
</div>
]]></field>
</record>
<menuitem id="menu_alert_board" parent="base.menu_reporting_dashboard"
action="action_alert_board" sequence="6" />
</data>
</openerp>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment