Browse Source

[FIX] partner_multi_relation_tab: use default widget many2one in tree view

12.0
Stephan Keller 5 years ago
parent
commit
ce625cb3c6
  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