mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 22:52:07 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -8,7 +8,7 @@ from odoo.http import Controller, route, request
|
|||
|
||||
class Board(Controller):
|
||||
|
||||
@route('/board/add_to_dashboard', type='json', auth='user')
|
||||
@route('/board/add_to_dashboard', type='jsonrpc', auth='user')
|
||||
def add_to_dashboard(self, action_id, context_to_save, domain, view_mode, name=''):
|
||||
# Retrieve the 'My Dashboard' action from its xmlid
|
||||
action = request.env.ref('board.open_board_my_dash_action').sudo()
|
||||
|
|
@ -34,7 +34,7 @@ class Board(Controller):
|
|||
})
|
||||
column.insert(0, new_action)
|
||||
arch = ElementTree.tostring(board_arch, encoding='unicode')
|
||||
request.env['ir.ui.view.custom'].create({
|
||||
request.env['ir.ui.view.custom'].sudo().create({
|
||||
'user_id': request.session.uid,
|
||||
'ref_id': view_id,
|
||||
'arch': arch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue