Allow field One2One in check_recursion.
issue3347 review1048002
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Allow field One2One in check_recursion
|
||||
* Remove the default order on MPTT
|
||||
* Add grouped attribute to data tag
|
||||
* Store selection tree state
|
||||
|
||||
@@ -822,7 +822,7 @@ class ModelStorage(Model):
|
||||
'''
|
||||
parent_type = cls._fields[parent]._type
|
||||
|
||||
if parent_type not in ('many2one', 'many2many'):
|
||||
if parent_type not in ('many2one', 'many2many', 'one2one'):
|
||||
raise Exception(
|
||||
'Unsupported field type "%s" for field "%s" on "%s"'
|
||||
% (parent_type, parent, cls.__name__))
|
||||
|
||||
Reference in New Issue
Block a user