Odoo 19.0 Community · Persistent

crm.reveal.rule: fields, relations and API

The crm.reveal.rule model ("CRM Lead Generation Rules") is a persistent model declared by the Lead Generation From Website Visits module. It exposes 32 fields, 26 of them declared directly on the model; 2 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.

Model identity

Technical name
crm.reveal.rule
Label
CRM Lead Generation Rules
Type
Persistent (models.Model)
SQL table
crm_reveal_rule
Origin module
Lead Generation From Website Visits (website_crm_iap_reveal)
Default order (_order)
sequence

Model fields

26 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.

32 of 32 fields shown

Technical nameLabelTypeDetails
activeActiveboolean
company_size_maxCompany Size Maxinteger
company_size_minCompany Sizeinteger
contact_filter_typeFilter Onselection
required

Values: role (Role), seniority (Seniority)

country_idsCountries

Only visitors of following countries will be converted into leads/opportunities (using GeoIP).

many2many
extra_contactsNumber of Contacts

This is the number of contacts to track if their role/seniority match your criteria. Their details will show up in the history thread of generated leads/opportunities. One credit is consumed per tracked contact.

integer
filter_on_sizeFilter on Size

Filter companies based on their size.

boolean
industry_tag_idsIndustries

Leave empty to always match. Odoo will not create lead if no match

many2many
lead_countNumber of Generated Leadsinteger
computed
lead_forData Tracking

Choose whether to track companies only or companies and their contacts

selection
required

Values: companies (Companies), people (Companies and their Contacts)

lead_idsGenerated Lead / Opportunityone2many

inverse: reveal_rule_id

lead_typeTypeselection
required

Values: lead (Lead), opportunity (Opportunity)

nameRule Namechar
required
opportunity_countNumber of Generated Opportunityinteger
computed
other_role_idsOther Rolesmany2many
preferred_role_idPreferred Rolemany2one
priorityPriorityselection

Values: 0 (Normal), 1 (Good), 2 (Very Good), 3 (Excellent)

regex_urlURL Expression

Regex to track website pages. Leave empty to track the entire website, or / to target the homepage. Example: /page* to track all the pages which begin with /page

char
seniority_idSenioritymany2one
sequenceSequence

Used to order the rules with same URL and countries. Rules with a lower sequence number will be processed first.

integer
state_idsStates

Only visitors of following states will be converted into leads/opportunities.

many2many
suffixSuffix

This will be appended in name of generated lead so you can identify lead/opportunity is generated with this rule

char
tag_idsTagsmany2many
team_idSales Teammany2one
user_idSalespersonmany2one
website_idWebsite

Restrict Lead generation to this website.

many2one
create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

Reading this model through the API

Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.

curl
curl -X POST "https://your-instance.odoo.com/json/2/crm.reveal.rule/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","contact_filter_type","lead_for","lead_type","preferred_role_id"],"limit":5}'
Python (requests)
import requests

BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}

res = requests.post(
    f"{BASE_URL}/crm.reveal.rule/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","contact_filter_type","lead_for","lead_type","preferred_role_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())
  • External API access requires Odoo's Custom plan.
  • XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
  • The access rights and record rules of the key's user apply.

Cite this tool

Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.

<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/crm-reveal-rule">crm.reveal.rule (Odoo 19.0)</a>

Sources

Data verified on September 23, 2026 · Odoo 19.0 Community

Have an Odoo project, or want to put your ERP to work with AI? Let's talk

Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.