From 2631413b3b37f1f320566c4fc69dde0389887075 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 18 Nov 2010 14:40:48 +0000 Subject: [PATCH] Propagate editable_mode when browsing listbox lines. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40376 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 0dd2658533..61107ce06a 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -2350,6 +2350,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): selection_name = renderer.getSelectionName() ignore_layout = int(request.get('ignore_layout', \ not request.get('is_web_mode', False) and 1 or 0)) + editable_mode = int(request.get('editable_mode', 0)) ui_domain = 'erp5_ui' # We need a way to pass the current line object (ie. brain) to the # field which is being displayed. Since the render_view API did not @@ -2435,6 +2436,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): params = [] if ignore_layout: params.append('ignore_layout:int=1') + if editable_mode: + params.append('editable_mode:int=1') if selection_name: params.extend(('selection_name=%s' % selection_name, 'selection_index=%s' % self.index, -- 2.30.9