From 6bb78d9253b5d906cf525b4cb675559cf722ea28 Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 6 Sep 2007 14:12:26 +0000 Subject: [PATCH] Make multi-wizard definition override the previous by default bzr revid: ced-6161c1e64aea0bb9f9538a27132c19111cf299f6 --- bin/tools/convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index 4f6fb9a075b..7f3f5723231 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -264,7 +264,8 @@ class xml_import(object): keyword = str(rec.getAttribute('keyword') or 'client_action_multi') keys = [('action',keyword),('res_model',model)] value = 'ir.actions.wizard,'+str(id) - replace = rec.hasAttribute('replace') and rec.getAttribute("replace") + replace = rec.hasAttribute('replace') and \ + rec.getAttribute("replace") or True self.pool.get('ir.model.data').ir_set(cr, self.uid, 'action', keyword, string, [model], value, replace=replace, isobject=True, xml_id=xml_id) return False