[IMP] fields: avoid redundant slot in class many2one

This commit is contained in:
Raphael Collet 2015-03-16 11:35:05 +01:00
parent c0d79a78f0
commit 68969c9716
1 changed files with 1 additions and 3 deletions

View File

@ -151,8 +151,6 @@ class _column(object):
def __getattr__(self, name):
""" Access a non-slot attribute. """
if name == '_args':
raise AttributeError(name)
try:
return self._args[name]
except KeyError:
@ -684,7 +682,7 @@ class many2one(_column):
_symbol_f = lambda x: x or None
_symbol_set = (_symbol_c, _symbol_f)
__slots__ = ['ondelete', '_obj', '_auto_join']
__slots__ = ['_obj', '_auto_join']
def __init__(self, obj, string='unknown', auto_join=False, **args):
args['ondelete'] = args.get('ondelete', 'set null')