summaryrefslogtreecommitdiff
path: root/openerp/osv/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'openerp/osv/fields.py')
-rw-r--r--openerp/osv/fields.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/openerp/osv/fields.py b/openerp/osv/fields.py
index 8275efa4b4a..d4db13ba953 100644
--- a/openerp/osv/fields.py
+++ b/openerp/osv/fields.py
@@ -1814,46 +1814,3 @@ class property(function):
fnct_search=self._property_search,
**args
)
-
-
-class column_info(object):
- """ Struct containing details about an osv column, either one local to
- its model, or one inherited via _inherits.
-
- .. attribute:: name
-
- name of the column
-
- .. attribute:: column
-
- column instance, subclass of :class:`_column`
-
- .. attribute:: parent_model
-
- if the column is inherited, name of the model that contains it,
- ``None`` for local columns.
-
- .. attribute:: parent_column
-
- the name of the column containing the m2o relationship to the
- parent model that contains this column, ``None`` for local columns.
-
- .. attribute:: original_parent
-
- if the column is inherited, name of the original parent model that
- contains it i.e in case of multilevel inheritance, ``None`` for
- local columns.
- """
- __slots__ = ['name', 'column', 'parent_model', 'parent_column', 'original_parent']
-
- def __init__(self, name, column, parent_model=None, parent_column=None, original_parent=None):
- self.name = name
- self.column = column
- self.parent_model = parent_model
- self.parent_column = parent_column
- self.original_parent = original_parent
-
- def __str__(self):
- return '%s(%s, %s, %s, %s, %s)' % (
- self.__class__.__name__, self.name, self.column,
- self.parent_model, self.parent_column, self.original_parent)