# Models and fields

Agencies defines 4 model(s) and 25 field(s) on Jaah 19.0. This page lists every model the app creates or extends and the purpose of each field. Generated from the installed database on 2026-10-14 for version 19.0.2.1.9.

**Agencies defines 4 model(s) and 25 field(s) on Jaah 19.0. This page lists every model the app creates or extends and the purpose of each field. Generated from the installed database on 2026-10-14 for version 19.0.2.1.9.**

## Legal Agency (`j.agent`) {#model-j-agent}

Model. Defined by this app.

### Active (`active`) {#field-j-agent-active}

Type: `boolean` · Stored · Tracked in the chatter

### Agency Details (`agency_details`) {#field-j-agent-agency-details}

Type: `html` · Stored

### Agency No (`agency_no`) {#field-j-agent-agency-no}

Type: `char` · Stored · Tracked in the chatter

### Agents (`agent_ids`) {#field-j-agent-agent-ids}

Type: `many2many` · Required · Stored · Relation: Contact (`res.partner`) · Tracked in the chatter

### Attachments (`attachment_ids`) {#field-j-agent-attachment-ids}

Type: `many2many` · Stored · Relation: Attachment (`ir.attachment`)

### Principal (`client_id`) {#field-j-agent-client-id}

Type: `many2one` · Required · Stored · Relation: Contact (`res.partner`) · Tracked in the chatter

### Other Principals (`client_ids`) {#field-j-agent-client-ids}

Type: `many2many` · Stored · Relation: Contact (`res.partner`)

### Company (`company_id`) {#field-j-agent-company-id}

Type: `many2one` · Required · Readonly · Stored · Relation: Companies (`res.company`)

### Created on (`create_date`) {#field-j-agent-create-date}

Type: `datetime` · Readonly · Stored

### Created by (`create_uid`) {#field-j-agent-create-uid}

Type: `many2one` · Readonly · Stored · Relation: User (`res.users`)

### Expiration Date (`expiry_date`) {#field-j-agent-expiry-date}

Type: `date` · Stored · Tracked in the chatter

### Expiry Reminder Sent For (`expiry_reminder_sent_for`) {#field-j-agent-expiry-reminder-sent-for}

Type: `date` · Stored

### Release Date (`release_date`) {#field-j-agent-release-date}

Type: `date` · Stored · Tracked in the chatter

### Clients Check (`stakeholders_check`) {#field-j-agent-stakeholders-check}

Type: `boolean` · Readonly · Computed · Related to: `company_id.stakeholders_check`

> Enable multiple clients per record.

### Status (`state`) {#field-j-agent-state}

Type: `selection` · Readonly · Values: Valid (`valid`), Expired (`expired`) · Computed

### Sub Agencies (`sub_agency_ids`) {#field-j-agent-sub-agency-ids}

Type: `many2many` · Stored · Relation: Legal Agency (`j.agent`)

> Sub-agencies linked to this one.

### Last Updated on (`write_date`) {#field-j-agent-write-date}

Type: `datetime` · Readonly · Stored

### Last Updated by (`write_uid`) {#field-j-agent-write-uid}

Type: `many2one` · Readonly · Stored · Relation: User (`res.users`)

## Companies (`res.company`) {#model-res-company}

Model. Defined by `base`; extended by this app.

### Reminder (`agency_auto_reminder`) {#field-res-company-agency-auto-reminder}

Type: `boolean` · Stored

> Send reminder emails before legal agencies expire.

### Reminder Before (`expiration_agent_days`) {#field-res-company-expiration-agent-days}

Type: `integer` · Stored

> Days before expiry to send reminder.

### Reminder Template (`template_reminder_id`) {#field-res-company-template-reminder-id}

Type: `many2one` · Stored · Relation: Email Templates (`mail.template`)

> Mail template used to send the expiry reminder.

## Config Settings (`res.config.settings`) {#model-res-config-settings}

Wizard (transient). Defined by `base`; extended by this app.

### Reminder (`agency_auto_reminder`) {#field-res-config-settings-agency-auto-reminder}

Type: `boolean` · Computed · Related to: `company_id.agency_auto_reminder`

> Send reminder emails before legal agencies expire.

### Reminder Before (`expiration_agent_days`) {#field-res-config-settings-expiration-agent-days}

Type: `integer` · Computed · Related to: `company_id.expiration_agent_days`

> Days before expiry to send reminder.

### Reminder Template (`template_reminder_id`) {#field-res-config-settings-template-reminder-id}

Type: `many2one` · Relation: Email Templates (`mail.template`) · Computed · Related to: `company_id.template_reminder_id`

> Mail template used to send the expiry reminder.

## Contact (`res.partner`) {#model-res-partner}

Model. Defined by `base`; extended by this app.

### Agency Count (`agency_count`) {#field-res-partner-agency-count}

Type: `integer` · Readonly · Computed

---

- Source: https://jaah.app/docs/law-agency/models-and-fields
- Updated: 2026-10-14
- Version: Agencies 19.0.2.1.9
