[IMP]: removed 'parent_field' from o2m 's attrs as now it is not required by the pager
bzr revid: nch@tinyerp.com-20100412125821-9p8gqt06dhs41tfa
This commit is contained in:
@@ -81,7 +81,6 @@ class _column(object):
|
||||
self.select = select
|
||||
self.selectable = True
|
||||
self.group_operator = args.get('group_operator', False)
|
||||
self.parent_field = args.get('parent_field', False)
|
||||
for a in args:
|
||||
if args[a]:
|
||||
setattr(self, a, args[a])
|
||||
@@ -367,7 +366,6 @@ class one2many(_column):
|
||||
_type = 'one2many'
|
||||
|
||||
def __init__(self, obj, fields_id, string='unknown', limit=None, **args):
|
||||
args.update({'parent_field':fields_id})
|
||||
_column.__init__(self, string=string, **args)
|
||||
self._obj = obj
|
||||
self._fields_id = fields_id
|
||||
|
||||
+1
-1
@@ -1072,7 +1072,7 @@ class orm_template(object):
|
||||
continue
|
||||
res[f] = {'type': self._columns[f]._type}
|
||||
for arg in ('string', 'readonly', 'states', 'size', 'required', 'group_operator',
|
||||
'change_default', 'translate', 'help', 'select', 'selectable','parent_field'):
|
||||
'change_default', 'translate', 'help', 'select', 'selectable'):
|
||||
if getattr(self._columns[f], arg):
|
||||
res[f][arg] = getattr(self._columns[f], arg)
|
||||
if not read_access:
|
||||
|
||||
Reference in New Issue
Block a user