From c5f4eab14a7f4d513415fd94b0f12e47d45328ad Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 1 Jun 2011 12:38:02 +0200 Subject: [PATCH] [IMP] board: board.fields_view_get now returns the "custom_view_id" if there was one This can be used by client side to display special features regarding customization, like "Undo" buttons, etc. bzr revid: odo@openerp.com-20110601103802-swxqe17bts7rqn2k --- addons/board/board.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/board/board.py b/addons/board/board.py index 7de35fcc5f8..85f2cce7ef7 100644 --- a/addons/board/board.py +++ b/addons/board/board.py @@ -129,6 +129,7 @@ class board_board(osv.osv): if vids: view_id = vids[0] arch = self.pool.get('ir.ui.view.custom').browse(cr, user, view_id, context=context) + res['custom_view_id'] = view_id res['arch'] = arch.arch res['arch'] = self._arch_preprocessing(cr, user, res['arch'], context=context) res['toolbar'] = {'print': [], 'action': [], 'relate': []}