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
Merge requests
!4
Migrate to 16.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Migrate to 16.0
topic/16.0/MO16-00596
into
branch/13.0
Overview
0
Commits
2
Pipelines
3
Changes
15
Closed
moctar.diallo@xcg.africa
requested to merge
topic/16.0/MO16-00596
into
branch/13.0
1 year ago
Overview
0
Commits
2
Pipelines
3
Changes
15
Expand
--HG-- branch : 16.0
MO16-00596 board_alerts
PR Integration
Edited
1 year ago
by
oury.balde
0
0
Merge request reports
Viewing commit
f13b4b6c
Prev
Next
Show latest version
15 files
+
270
−
326
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
Search (e.g. *.vue) (Ctrl+P)
f13b4b6c
finish up migration
· f13b4b6c
moctar.diallo@xcg.africa
authored
1 year ago
controllers/add_to_alert_dashboard.py
+
3
−
6
Options
@@ -13,11 +13,8 @@
"""
@route
(
route
=
"
/board/add_to_alert_dashboard
"
,
type
=
"
json
"
,
auth
=
"
user
"
)
def
add_to_dashboard
(
self
,
action_id
,
context_to_save
,
domain
,
view_mode
,
name
=
""
):
"""
Called when adding to the alert dashboard from the Odoo web client.
"""
def
add_to_dashboard
(
self
,
action_id
,
context_to_save
,
domain
,
view_mode
,
name
=
""
):
"""
Called when adding to the alert dashboard from the Odoo web client.
"""
action
=
request
.
env
.
ref
(
"
board_alerts.action_alert_board
"
)
if
(
@@ -28,7 +25,7 @@
):
# Maybe should check the content instead of model board.board ?
view_id
=
action
[
"
views
"
][
0
][
0
]
board
=
request
.
env
[
"
board.board
"
].
fields
_view
_get
(
view_id
,
"
form
"
)
board
=
request
.
env
[
"
board.board
"
].
get
_view
(
view_id
,
"
form
"
)
if
board
and
"
arch
"
in
board
:
xml
=
ElementTree
.
fromstring
(
board
[
"
arch
"
])
column
=
xml
.
find
(
"
./board/column
"
)
Loading