Odoo - Open Ticket

Odoo - Open Ticket creates an Odoo Helpdesk ticket for:

  • Assets returned by the selected query or assets selected on the relevant asset page.

See Creating Enforcement Sets to learn more about adding Enforcement Actions to Enforcement Sets.

When accessing an enforcement action using the API, you must use the backend form of field names.

Use the Syntax Helper to find the correct name. In the enforcement action, enable Configure Dynamic Values and select Syntax Helper.

Note

Required Fields

These fields must be configured to run the Enforcement Action.

  • Action name - The name of this Enforcement Action. The system sets a default name. You can change the name.
  • Configure Dynamic Values (optional) - Toggle on to enter a Dynamic Value statement. See Creating Enforcement Action Dynamic Value Statements to learn more about Dynamic Value statement syntax.
  • Use stored credentials from the Odoo adapter - Select this option to use credentials from the adapter connection.
  • When you select this option, the Select Adapter Connection drop-down becomes available. Select the adapter connection to use for this Enforcement Action.

  • Ticket Subject - Enter the subject for the new ticket. The default value is New Ticket. You can use template placeholders that are mapped in Map Axonius Fields to Template Placeholders.

Compute Node - The Axonius node to use when connecting to the specified host. For more details, see Working with Axonius Compute Nodes.

Additional Fields

These fields are optional.

  • Helpdesk Team ID - Enter the numeric ID of the Odoo Helpdesk team for the ticket.
  • Description - Enter the ticket description. The default value is This is a ticket created by Axonius.. You can use template placeholders that are mapped in Map Axonius Fields to Template Placeholders.
  • Priority - Select the Odoo Helpdesk priority: 0 for Low, 1 for Medium, 2 for High, or 3 for Urgent. You can also enter a custom value.
  • Assignee User ID - Enter the numeric ID of the Odoo user to assign to the ticket.
  • Map Axonius Fields to Template Placeholders - Map Axonius fields to placeholder names. Use {{placeholder_name}} in Ticket Subject, Description, or Additional Fields to insert the per-asset value. For example, map Host Name to hostname and use Device {{hostname}} flagged by policy.
  • Additional Fields - Add Odoo ticket fields, such as partner_id or tag_ids. Each entry has a Field Name and Value. Values can be static text or a template placeholder.
💡

Connection and Credentials

When Use stored credentials from the adapter is toggled off, some of the connection fields below are required to create the connection, while other fields are optional.

  • Use an Odoo adapter connection or provide the connection settings required by the Odoo adapter.
  • Verify SSL (Optional) (default: enabled) - Selects whether to verify the SSL certificate of the server against the CA database inside of Axonius. For more details, see SSL Trust & CA Settings. This setting is enabled by default on all new adapter settings. If you need to disable SSL verification, make sure you disable this setting.)

  • HTTPS Proxy (optional) - Connect the adapter to a proxy instead of directly connecting it to the domain.

  • HTTPS Proxy User Name (optional) - The user name to use when connecting to the server using the HTTPS Proxy.

  • HTTPS Proxy Password (optional) - The password to use when connecting to the server using the HTTPS Proxy.

  • Gateway Name - Select the Gateway through which to connect to perform the action.

APIs

Axonius uses the Odoo API - POST /json/2/{ticket model}/create. If no ticket model is configured, the action uses helpdesk.ticket.

Required Ports

Axonius must be able to communicate via the following ports:

  • TCP port 443 (HTTPS) — confirm the exact port with your Odoo administrator.

Required Permissions

The stored credentials, or those provided in Connection and Credentials, must have the following permission(s) to perform this Enforcement Action:

  • The credentials used by the selected Odoo adapter connection must be allowed to create records in the configured Odoo ticket model.

Note: Confirm the exact permission names, scopes, and authentication requirements with your Odoo administrator, as they are not specified in the supplied implementation details.


To learn more about Enforcement Actions, see Enforcement Actions.


Did this page help you?