There's more...

The preceding domains work only on fields of the model itself, while we often need to filter based on properties of linked records. To do this, you can use the notation that's also used in @api.depends definitions or related fields: create a dotted path from the current model to the model you want to filter for. To search partners that have a salesperson who is a member of a group starting with the letter G, you would use the [('user_id.groups_id.name', '=like', 'G%')] domain. The path can be long, so you only have to be sure that there are relation fields between the current model and the model you want to filter for.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset