# Security

Contracts defines 3 group(s), 10 access right(s) and 3 record rule(s). This page states who can see and edit what, in plain language, with the exact rules underneath. Generated from the installed database on 2026-10-14 for version 19.0.1.0.26.

**Contracts defines 3 group(s), 10 access right(s) and 3 record rule(s). This page states who can see and edit what, in plain language, with the exact rules underneath. Generated from the installed database on 2026-10-14 for version 19.0.1.0.26.**

## Groups

### Contracts (`j_law_contract.res_groups_privilege_j_contract`) {#group-j-law-contract-res-groups-privilege-j-contract}

A privilege: the heading under which the groups below appear on the user form.

### Manager: All Documents (`j_law_contract.group_j_contract_manager`) {#group-j-law-contract-group-j-contract-manager}

Implies: Contracts / User: Own Documents (`j_law_contract.group_j_contract_user`)

### Read-only (`j_law_contract.group_j_contract_readonly`) {#group-j-law-contract-group-j-contract-readonly}


### User: Own Documents (`j_law_contract.group_j_contract_user`) {#group-j-law-contract-group-j-contract-user}

Implies: Contracts / Read-only (`j_law_contract.group_j_contract_readonly`)

## Access rights

### Legal Contract (`j.contract`) {#access-j-contract}

| Group | Read | Write | Create | Delete |
|---|---|---|---|---|
| Role / Portal (`base.group_portal`) | yes | no | no | no |
| Contracts / Manager: All Documents (`j_law_contract.group_j_contract_manager`) | yes | yes | yes | yes |
| Contracts / Read-only (`j_law_contract.group_j_contract_readonly`) | yes | no | no | no |
| Contracts / User: Own Documents (`j_law_contract.group_j_contract_user`) | yes | yes | yes | no |

### Contract Cancel Reason (`j.contract.cancel.reason`) {#access-j-contract-cancel-reason}

| Group | Read | Write | Create | Delete |
|---|---|---|---|---|
| Contracts / Manager: All Documents (`j_law_contract.group_j_contract_manager`) | yes | yes | yes | yes |
| Contracts / Read-only (`j_law_contract.group_j_contract_readonly`) | yes | no | no | no |

### Cancel Contract Wizard (`j.contract.cancel.wizard`) {#access-j-contract-cancel-wizard}

| Group | Read | Write | Create | Delete |
|---|---|---|---|---|
| Contracts / Manager: All Documents (`j_law_contract.group_j_contract_manager`) | yes | yes | yes | yes |
| Contracts / User: Own Documents (`j_law_contract.group_j_contract_user`) | yes | yes | yes | yes |

### Contract Template (`j.contract.template`) {#access-j-contract-template}

| Group | Read | Write | Create | Delete |
|---|---|---|---|---|
| Contracts / Manager: All Documents (`j_law_contract.group_j_contract_manager`) | yes | yes | yes | yes |
| Contracts / Read-only (`j_law_contract.group_j_contract_readonly`) | yes | no | no | no |

## Record rules

### Contract: company isolation (`j_law_contract.rule_j_contract_company`) {#rule-j-law-contract-rule-j-contract-company}

On Legal Contract (`j.contract`) for everyone: read, write, create, delete.

Records where "__jdocsvar8__" is one of the user's companies.

```python
[('company_id', 'in', company_ids)]
```

### Contract: all documents (manager) (`j_law_contract.rule_j_contract_manager_all`) {#rule-j-law-contract-rule-j-contract-manager-all}

On Legal Contract (`j.contract`) for Contracts / Manager: All Documents (`j_law_contract.group_j_contract_manager`): read, write, create, delete.

Records where every record.

```python
[(1, '=', 1)]
```

### Contract: own documents (user) (`j_law_contract.rule_j_contract_user_own`) {#rule-j-law-contract-rule-j-contract-user-own}

On Legal Contract (`j.contract`) for Contracts / User: Own Documents (`j_law_contract.group_j_contract_user`): read, write, create, delete.

Records where Followers (Partners) is one of the current user's contact or Created by is the current user.

```python
[
            '|',
            ('create_uid', '=', user.id),
            ('message_partner_ids', 'in', [user.partner_id.id]),
        ]
```

---

- Source: https://jaah.app/docs/law-contract/security
- Updated: 2026-10-14
- Version: Contracts 19.0.1.0.26
