Api.model will convert old API calls to decorated function to new API signature. It allows to be polite when
migrating code.
The below code you can use in your .py file .
@api.model
def afun(self):
pass
Note- Model.api will automatically convert it into a list of ids
0 Comment(s)