---
title: "compose_message (Odoo)"
description: "itgen_odoo_compose_message"
language: es
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/es/datamodels/odoo/Odoo.mail.compose_message
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.mail.compose_message
updated: 2026-11-18T01:04:32Z
license: https://documentation.invantive.eu/es/
---

# compose_message: Odoo itgen_odoo_compose_message

`read only` `per partition`

- Catálogo: `Odoo`
- Esquema: `mail`
- Etiqueta: itgen_odoo_compose_message

Email composition wizard

Solo puede recuperar datos.

## Resumen

Generic message composition wizard. You may inherit from this wizard
        at model and view levels to provide specific features.

        The behavior of the wizard depends on the composition_mode field:
        - 'comment': post on a record. The wizard is pre-populated via ``get_record_data``
        - 'mass_mail': wizard in mass mailing mode where the mail details can
            contain template placeholders that will be merged with actual data
            before being sent to each recipient.

## Columnas de la Tabla

A continuación se muestran las columnas de la tabla `compose_message`. Cada columna tiene un tipo de datos SQL. Se debe proporcionar un nuevo valor no nulo para cada columna requerida en todo momento durante la inserción y la actualización.

| Name | Tipo de Datos | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `active_domain` | `varchar2` | Active domain | [ ] |  |  |
| `attachment_ids` | `varchar2` |  | [ ] |  |  |
| `author_id` | `varchar2` |  | [ ] |  | Author of the message.If not set, email_from may hold an email address that did not match any partner. |
| `author_id_label` | `varchar2` |  | [ ] |  | Author of the message.If not set, email_from may hold an email address that did not match any partner. |
| `auto_delete` | `boolean` | Delete Emails | [ ] |  | This option permanently removes any track of email after it's been sent, including from the Technical menu in the Settings, in order to preserve storage space of your Odoo database. |
| `auto_delete_message` | `boolean` | Delete Message Copy | [ ] |  | Do not keep a copy of the email in the document communication history (mass mailing only) |
| `body` | `varchar2` | Contents | [ ] |  |  |
| `campaign_id` | `varchar2` |  | [ ] |  |  |
| `campaign_id_label` | `varchar2` |  | [ ] |  |  |
| `can_edit_body` | `boolean` | Can Edit Body | [ ] |  |  |
| `composition_mode` | `varchar2` | Composition mode | [ ] |  |  |
| `create_date` | `datetime` | Creado en | [ ] |  |  |
| `create_uid` | `varchar2` |  | [ ] |  |  |
| `create_uid_label` | `varchar2` |  | [ ] |  |  |
| `display_name` | `varchar2` | Nombre para mostrar | [ ] |  |  |
| `email_add_signature` | `boolean` | Email Add Signature | [ ] |  |  |
| `email_from` | `varchar2` | From | [ ] |  | Email address of the sender.This field is set when no matching partner is found and replaces the author_id field in the chatter. |
| `email_layout_xmlid` | `varchar2` | Email Notification Layout | [ ] |  |  |
| `id` | `int32` | ID | [ ] |  |  |
| `is_log` | `boolean` | Log as Internal Note | [ ] |  |  |
| `is_mail_template_editor` | `boolean` | Is Editor | [ ] |  |  |
| `lang` | `varchar2` | Language | [ ] |  | Optional translation language (ISO code) to select when sending out an email.If not set, the english version will be used.This should usually be a placeholder expression that provides the appropriate language, e.g. {{ object.partner_id.lang }}. |
| `mail_activity_type_id` | `varchar2` |  | [ ] |  |  |
| `mail_activity_type_id_label` | `varchar2` |  | [ ] |  |  |
| `mail_server_id` | `varchar2` |  | [ ] |  |  |
| `mail_server_id_label` | `varchar2` |  | [ ] |  |  |
| `mailing_list_ids` | `varchar2` |  | [ ] |  |  |
| `marketing_activity_id` | `varchar2` |  | [ ] |  |  |
| `marketing_activity_id_label` | `varchar2` |  | [ ] |  |  |
| `mass_mailing_id` | `varchar2` |  | [ ] |  |  |
| `mass_mailing_id_label` | `varchar2` |  | [ ] |  |  |
| `mass_mailing_name` | `varchar2` | Mass Mailing Name | [ ] |  | If set, a mass mailing will be created so that you can track its results in the Email Marketing app. |
| `message_type` | `varchar2` | Type | [x] |  | Message type: email for email message, notification for system message, comment for other messages such as user replies |
| `model` | `varchar2` | Related Document Model | [ ] |  |  |
| `model_is_thread` | `boolean` | Model Is Thread | [ ] |  |  |
| `notify` | `boolean` | Notify followers | [ ] |  | Notify followers of the document (mass post only) |
| `parent_id` | `varchar2` |  | [ ] |  |  |
| `parent_id_label` | `varchar2` |  | [ ] |  |  |
| `partner_ids` | `varchar2` |  | [ ] |  |  |
| `record_name` | `varchar2` | Message Record Name | [ ] |  |  |
| `render_model` | `varchar2` | Rendering Model | [ ] |  |  |
| `reply_to` | `varchar2` | Responder a | [ ] |  | Reply email address.Setting the reply_to bypasses the automatic thread creation. |
| `reply_to_force_new` | `boolean` | Considers answers as new thread | [ ] |  | Manage answers as new incoming emails instead of replies going to the same thread. |
| `reply_to_mode` | `varchar2` | Replies | [ ] |  | Original Discussion: Answers go in the original document discussion thread.Another Email Address: Answers go to the email address mentioned in the tracking message-id instead of original document discussion thread.This has an impact on the generated message-id. |
| `res_id` | `int32` | Related Document ID | [ ] |  |  |
| `subject` | `varchar2` | Subject | [ ] |  |  |
| `subtype_id` | `varchar2` |  | [ ] |  |  |
| `subtype_id_label` | `varchar2` |  | [ ] |  |  |
| `template_id` | `varchar2` |  | [ ] |  |  |
| `template_id_label` | `varchar2` |  | [ ] |  |  |
| `use_active_domain` | `boolean` | Use active domain | [ ] |  |  |
| `write_date` | `datetime` | Last Updated on | [ ] |  |  |
| `write_uid` | `varchar2` |  | [ ] |  |  |
| `write_uid_label` | `varchar2` |  | [ ] |  |  |


## Notas de la Versión

Cambios introducidos en cada versión en las tablas, columnas, atributos y capacidades del controlador:

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