diff --git a/openerp/fields.py b/openerp/fields.py index 5fec7ec90ae..501ecee6887 100644 --- a/openerp/fields.py +++ b/openerp/fields.py @@ -1255,6 +1255,7 @@ class Char(_String): return False return ustr(value)[:self.size] + class Text(_String): """ Very similar to :class:`~.Char` but used for longer contents, does not have a size and usually displayed as a multiline text box. @@ -1272,6 +1273,7 @@ class Text(_String): return False return ustr(value) + class Html(_String): type = 'html' _slots = { @@ -2016,8 +2018,9 @@ class Id(Field): def __set__(self, record, value): raise TypeError("field 'id' cannot be assigned") + # imported here to avoid dependency cycle issues from openerp import SUPERUSER_ID -from .exceptions import Warning, AccessError, MissingError -from .models import check_pg_name, BaseModel, MAGIC_COLUMNS +from .exceptions import AccessError, MissingError +from .models import check_pg_name, BaseModel from .osv import fields