domain_ / Selection descriptor customize SQL expression automatic joins @classmethod def domain_field(cls, domain, tables): ... return expression translated selection for report/ (error) message select = fields.Selection([...], ...) select_string = select.translated('select')