+4 votes
32 views

Hello!,
How can i related a field with another field so if the second field changed automatically the first field change also?Can someone help me?

in Back-end by (3.7k points)
edited by | 32 views

1 Answer

+2 votes
Best answer
The related fields can be used like this
relation_field = field.Many2one('model')
related_field = field.type_of_field_in_the_original_model(related='relation_field.related_field_name_in_the_original_model')
by (10.5k points)
selected by
205 questions
180 answers
37 comments
220,668 users