Api.depends will trigger the call to the decorated function if any of the fields specified in the decorator is altered by ORM or changed in the form:
In below code you can use in your .py file.
@api.depends('name', 'an_other_field')
def afun(self):
pass
Note- When you redefine depends you have to redefine all @api.depends, so it loses some of his interest.
0 Comment(s)