---
title: "rule (Odoo)"
description: "itgen_odoo_rule"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.ir.rule
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.ir.rule
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# rule: Odoo itgen_odoo_rule

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `ir`
- Label: itgen_odoo_rule

Rule

Can only retrieve data.

## Summary

Mixin that overrides the create and write methods to properly generate
        ir.model.data entries flagged with Studio for the corresponding resources.
        Doesn't create an ir.model.data if the record is part of a module being
        currently installed as the ir.model.data will be created automatically
        afterwards.

## Table Columns

The columns of the table `rule` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `active` | `boolean` | Active | [ ] |  | If you uncheck the active field, it will disable the record rule without deleting it (if you delete a native record rule, it may be re-created when you reload the module). |
| `create_date` | `datetime` | Created on | [ ] |  |  |
| `create_uid` | `varchar2` |  | [ ] |  |  |
| `create_uid_label` | `varchar2` |  | [ ] |  |  |
| `display_name` | `varchar2` | Display Name | [ ] |  |  |
| `domain_force` | `varchar2` | Domain | [ ] |  |  |
| `global` | `boolean` | Global | [ ] |  | If no group is specified the rule is global and applied to everyone |
| `groups` | `varchar2` |  | [ ] |  |  |
| `id` | `int32` | ID | [ ] |  |  |
| `model_id` | `varchar2` |  | [ ] |  |  |
| `model_id_label` | `varchar2` |  | [ ] |  |  |
| `name` | `varchar2` | Name | [ ] |  |  |
| `perm_create` | `boolean` | Apply for Create | [ ] |  |  |
| `perm_read` | `boolean` | Apply for Read | [ ] |  |  |
| `perm_unlink` | `boolean` | Apply for Delete | [ ] |  |  |
| `perm_write` | `boolean` | Apply for Write | [ ] |  |  |
| `write_date` | `datetime` | Last Updated on | [ ] |  |  |
| `write_uid` | `varchar2` |  | [ ] |  |  |
| `write_uid_label` | `varchar2` |  | [ ] |  |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

