[FIX] Problem with list view and some references

lp bug: https://launchpad.net/bugs/1071491 fixed

bzr revid: nicolas.vanhoren@openerp.com-20121106153929-8705y9r3u2b27i8u
This commit is contained in:
niv-openerp 2012-11-06 16:39:29 +01:00
parent e3e54b0e7a
commit 660443885c
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
// set) a human-readable version. m2o does not have this issue
// because the non-human-readable is just a number, where the
// human-readable version is a pair
if (value && (ref_match = /([\w\.]+),(\d+)/.exec(value))) {
if (value && (ref_match = /^([\w\.]+),(\d+)$/.exec(value))) {
// reference values are in the shape "$model,$id" (as a
// string), we need to split and name_get this pair in order
// to get a correctly displayable value in the field