c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16996
[Bug 722766] Re: [6.0] bad _rec_name in default tree view creation
Hello Jacques,
Here you wanted to assign the value of _rec_name just before the xml
assignment. I assume that this change suggested by you is due to the
wrong value of _rec_name passed in the xml for field name="%s".
After checking the code value of _rec_name will be override and it will
not matter where you have declared the value. Please provide me more
information on it and notify me if I have assumed the wrong
interpretation from your bug.
Thanks.
** Changed in: openobject-server
Status: New => Incomplete
--
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:
Incomplete
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)
References