Skip to content
Snippets Groups Projects

Migrate to 16.0

Closed moctar.diallo@xcg.africa requested to merge topic/16.0/MO16-00596 into branch/13.0
15 files
+ 270
326
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -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