mirror of
https://github.com/NaN-tic/trytond-party_relationship.git
synced 2023-12-14 04:33:10 +01:00
Fix reverse field definition by adding missing depends.
This commit is contained in:
parent
905b2fdbb9
commit
4c029cd83a
1 changed files with 1 additions and 1 deletions
2
party.py
2
party.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue