From 9ec96027dcc143d877006a414d4cf27859819ead Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 31 Aug 2011 14:35:09 +0200 Subject: [PATCH] [IMP] remove redundant code bzr revid: xmo@openerp.com-20110831123509-8xc26diq35zd5h4m --- addons/base/controllers/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/base/controllers/main.py b/addons/base/controllers/main.py index eb7d654ab74..73a28beb095 100644 --- a/addons/base/controllers/main.py +++ b/addons/base/controllers/main.py @@ -1117,9 +1117,8 @@ class Export(View): ref = field.pop('relation') record['params'] = {'model': ref, 'prefix': id, 'name': nm} if import_compat and field['type'] in ('many2one', 'many2many'): - if field['type'] == 'many2many': - record['children'] = [] - elif field['type'] == 'many2one': + # m2m remains childless + if field['type'] == 'many2one': record['children'] = [id + '/id', id + '/.id'] else: cfields = self.fields_get(req, ref)