Allow field One2One in check_recursion.

issue3347
review1048002
This commit is contained in:
Udo Spallek
2013-09-04 12:35:02 +00:00
parent 7c9f5ffa89
commit d798452aae
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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__))