odoo use field domain code example
Example 1: domain in field odoo
domain = "[('is_church','=',True)]"
Example 2: domain in field odoo
_columns{
'is_church': fields.boolean('Is a Church', domain="[('is_church', '=', True)]")
}
domain = "[('is_church','=',True)]"
_columns{
'is_church': fields.boolean('Is a Church', domain="[('is_church', '=', True)]")
}