Browse Source

Merge PR #887 into 12.0

Signed-off-by NL66278
12.0
OCA-git-bot 5 years ago
parent
commit
16d1b92062
  1. 4
      partner_multi_relation_tabs/tablib/tab.py

4
partner_multi_relation_tabs/tablib/tab.py

@ -47,7 +47,7 @@ class Tab(object):
type_field = etree.Element( type_field = etree.Element(
'field', 'field',
name='type_selection_id', name='type_selection_id',
widget='many2one_clickable')
widget='many2one')
type_field.set('domain', repr([('tab_id', '=', self.tab_record.id)])) type_field.set('domain', repr([('tab_id', '=', self.tab_record.id)]))
type_field.set('options', repr({'no_create': True})) type_field.set('options', repr({'no_create': True}))
tree.append(type_field) tree.append(type_field)
@ -55,7 +55,7 @@ class Tab(object):
'field', 'field',
string=_('Partner'), string=_('Partner'),
name='other_partner_id', name='other_partner_id',
widget='many2one_clickable')
widget='many2one')
other_partner_field.set('options', repr({'no_create': True})) other_partner_field.set('options', repr({'no_create': True}))
tree.append(other_partner_field) tree.append(other_partner_field)
tree.append(etree.Element('field', name='date_start')) tree.append(etree.Element('field', name='date_start'))

Loading…
Cancel
Save