Make multi-wizard definition override the previous by default

bzr revid: ced-6161c1e64aea0bb9f9538a27132c19111cf299f6
This commit is contained in:
ced 2007-09-06 14:12:26 +00:00
parent 9b3131cae1
commit 6bb78d9253
1 changed files with 2 additions and 1 deletions

View File

@ -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