summaryrefslogtreecommitdiff
path: root/bin/tools
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2010-10-15 16:07:29 +0200
committerOlivier Dony <odo@openerp.com>2010-10-15 16:07:29 +0200
commitbf6165b3fe5396d4340c8d6ed90e1ac7780cbf45 (patch)
treedd5b58aeefe9bde90a166ffd86bcdbe5ce125727 /bin/tools
parentacf51057835ee0e12a6e73730217d239bd98a477 (diff)
[ADD] ir.actions.act_window: added support for multi=True parameter to hide an act_window in single item view (already supported on other actions)
bzr revid: odo@openerp.com-20101015140729-cy520ac0m63e5tca
Diffstat (limited to 'bin/tools')
-rw-r--r--bin/tools/convert.py2
-rw-r--r--bin/tools/yaml_import.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/bin/tools/convert.py b/bin/tools/convert.py
index 6059d4a54ec..a69885be4db 100644
--- a/bin/tools/convert.py
+++ b/bin/tools/convert.py
@@ -488,6 +488,8 @@ form: module.record_id""" % (xml_id,)
if rec.get('target'):
res['target'] = rec.get('target','')
+ if rec.get('multi'):
+ res['multi'] = rec.get('multi', False)
id = self.pool.get('ir.model.data')._update(cr, self.uid, 'ir.actions.act_window', self.module, res, xml_id, noupdate=self.isnoupdate(data_node), mode=self.mode)
self.idref[xml_id] = int(id)
diff --git a/bin/tools/yaml_import.py b/bin/tools/yaml_import.py
index 7b3c5edc6e1..8aaf34f7bf6 100644
--- a/bin/tools/yaml_import.py
+++ b/bin/tools/yaml_import.py
@@ -607,6 +607,7 @@ class YamlInterpreter(object):
'usage': node.usage,
'limit': node.limit,
'auto_refresh': node.auto_refresh,
+ 'multi': getattr(node, 'multi', False),
}
self._set_group_values(node, values)