Fix reverse field definition by adding missing depends.

This commit is contained in:
Albert Cervera i Areny 2013-10-25 23:55:41 +02:00
parent 905b2fdbb9
commit 4c029cd83a

View file

@ -14,7 +14,7 @@ class RelationType(ModelSQL, ModelView):
name = fields.Char('Name', required=True, translate=True)
reverse = fields.Many2One('party.relation.type', 'Reverse Relation',
ondelete='CASCADE', domain=[('id', '!=', Eval('id'))])
ondelete='CASCADE', domain=[('id', '!=', Eval('id'))], depends=['id'])
@classmethod
def __setup__(cls):