Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Board Alerts
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Board Alerts
Commits
c51fa33a
Commit
c51fa33a
authored
11 years ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
Add a new board for alerts
parent
bd42fe99
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
__openerp__.py
+1
-0
1 addition, 0 deletions
__openerp__.py
board.py
+2
-3
2 additions, 3 deletions
board.py
data/alert_board.xml
+47
-0
47 additions, 0 deletions
data/alert_board.xml
with
50 additions
and
3 deletions
__openerp__.py
+
1
−
0
View file @
c51fa33a
...
...
@@ -12,6 +12,7 @@
'
board
'
,
],
'
data
'
:
[
'
data/alert_board.xml
'
,
'
test_action.xml
'
,
],
'
installable
'
:
True
,
...
...
This diff is collapsed.
Click to expand it.
board.py
+
2
−
3
View file @
c51fa33a
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
data/alert_board.xml
0 → 100644
+
47
−
0
View file @
c51fa33a
<?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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment