c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16956
[Bug 722766] [NEW] [6.0] bad _rec_name in default tree view creation
Public bug reported:
The default tree view is not using the right _rec_name:
osv/orm.py : line 1622
23 # otherwise, build some kind of default view
(...)
23 elif view_type == 'tree':
23 _rec_name = self._rec_name
23 if _rec_name not in self._columns:
23 _rec_name = self._columns.keys()[0]
23 xml = '<?xml version="1.0" encoding="utf-8"?>' \
23 '<tree string="%s"><field name="%s"/></tree>' \
23 % (self._description, self._rec_name)
It should be the variable _rec_name set just before :
23 % (self._description, _rec_name)
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: profserv
** Tags added: profserv
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/722766
Title:
[6.0] bad _rec_name in default tree view creation
Status in OpenERP Server:
New
Bug description:
The default tree view is not using the right _rec_name:
osv/orm.py : line 1622
23 # otherwise, build some kind of default view
(...)
23 elif view_type == 'tree':
23 _rec_name = self._rec_name
23 if _rec_name not in self._columns:
23 _rec_name = self._columns.keys()[0]
23 xml = '<?xml version="1.0" encoding="utf-8"?>' \
23 '<tree string="%s"><field name="%s"/></tree>' \
23 % (self._description, self._rec_name)
It should be the variable _rec_name set just before :
23 % (self._description, _rec_name)
Follow ups
References