[m2m] in tree view has hardcoded seperator

Bug #1279393 reported by Sandy Carter (http://www.savoirfairelinux.com)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Problem:
There is no option to change the separator in a m2m representation in the list view.
This is a problem with name_gets which contain commas, such as the base_location module in lp:partner-contact-management. A semi-colon(;) or pipe(|) separator is preferable in that instance.

How to reproduce:
Have a tree view which displays a many2many field.
Add a couple of entries for which the name contains a comma.

Actual output:
No way to tell the difference between different elements

Expected output:
An option to the field for which you can change the comma for another character.

Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

Forgot to mention, the line which hardcodes the comma is here in the render cell function of instance.web.ListView.List in addons/web/static/src/js/view_list.js around line 1066 as of revision 4137:

                        record.set(column.id + '__display',
                                   _(names).pluck(1).join(', '));

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.