[IMP]:optimization

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

bzr revid: nch@tinyerp.com-20110421120443-d30x5z0u1wciut42
This commit is contained in:
Naresh (OpenERP) 2011-04-21 17:34:43 +05:30
parent 2030bc90f9
commit ddfac1ecf7
1 changed files with 1 additions and 1 deletions

View File

@ -1616,7 +1616,7 @@ class orm_template(object):
_rec_name = self._columns.keys()[0]
xml = '<?xml version="1.0" encoding="utf-8"?>' \
'<tree string="%s"><field name="%s"/></tree>' \
% (self._description, self._rec_name)
% (self._description, _rec_name)
elif view_type == 'calendar':
xml = self.__get_default_calendar_view()