How to connect Seatmap Pro to Odoo

The Seatmap Pro module for Odoo adds a seat map to event registration on your Odoo website. The map shows a venue that you drew in the Seatmap Pro editor, and buyers pick their seats on it. Tickets, prices, the cart, payment, and attendees stay in Odoo, and Seatmap Pro supplies the venue drawing and the map the buyer clicks on.

The module is an early version for Odoo 19.0. It is tested by its own test suite and by a full purchase in a browser, from the seat map to a confirmed order.

What you need

  • A Seatmap Pro account. Its organization settings hold the organization token and the public key.
  • A venue drawn in the Seatmap Pro editor and a published event on that venue.
  • Odoo 19.0 on your own server or on Odoo.sh, with the Events and eCommerce apps. Odoo Online cannot load modules that contain Python code, so the module does not work there.

Install the module

The module is in the seatmap-pro-odoo repository on GitHub, on the 19.0 branch. Its technical name is seatmap_pro_event.

  1. Put the seatmap_pro_event folder into a directory on your Odoo addons_path.
  2. Restart Odoo.
  3. In Apps, select Update Apps List, search for Seatmap Pro, and select Activate.

The module needs only the Python packages that Odoo already installs. On Odoo.sh, add the repository to your project as a Git submodule, or copy the folder into your project repository. Odoo.sh builds the branch, and you activate the module in Apps.

Find your Seatmap Pro values

The module asks for three values from Seatmap Pro.

  • The organization token and the public key are on the organization page of the editor’s Admin panel. The getting started guide calls them the Secret API key and the Public API key.
  • The event ID is the last part of the editor address when you open the event from the Events Hub. The address has the form /app/venues/{venueId}/schemas/{schemaId}/events/{eventId}.

Connect Seatmap Pro

  1. Go to Events > Configuration > Settings. You need the Administration / Settings access right.
  2. In the Seatmap Pro block, paste the organization token and the public key.
  3. Select Save.

The token field is write-only. Odoo stores the token and never sends it back to a browser, including the administrator’s. To replace the token, paste a new one.

Leave the Booking API address at its default value unless you run Seatmap Pro on premise. For an on-premise installation, the server administrator first adds its Booking API host to the SEATMAP_PRO_ALLOWED_API_HOSTS environment variable and restarts Odoo. The module sends the organization token to no other address.

Set up an event

  1. Open the event and go to the Seatmap Pro tab.
  2. Enter the ID of the Seatmap Pro event and select Load venue. Odoo stores one record per seat, with its sector, row, and number.
  3. Each Seatmap Pro pricing zone appears in the list below. Choose the Odoo ticket sold for each zone. Seats in a zone without a ticket are not for sale.

A seat keeps its record when you edit the venue in Seatmap Pro and load it again. If the new venue removes a seat that is already booked, Odoo refuses the import and keeps the old seats.

On the same tab, Seat hold (minutes) sets how long a seat stays reserved for a buyer. The default is 15 minutes.

What the buyer sees

On the event page, the Register button becomes Choose seats and opens the seat map. For an event with several time slots, the buyer picks the slot first. Only seats that are free in Odoo can be selected, and they show the price of the mapped ticket.

When the buyer continues, Odoo shows its usual attendee form with one attendee per seat. The seats go to the cart as one order line per seat, and each attendee keeps their seat. The seat appears on the order line, in the attendee list, and on the attendee form in the back end.

Free tickets skip the cart, as they do in standard Odoo, and the attendees are confirmed at once.

How the module holds seats

Standard Odoo keeps cart attendees in draft and does not count them against capacity. The module adds three safeguards so that two buyers cannot get the same seat:

  • A click on the map holds the seat on the server for the hold time. Another buyer cannot select it meanwhile.
  • A scheduled action runs every minute. When a hold expires and the order is not being paid, it removes the seat’s line and attendee from the cart and frees the seat.
  • Before payment, Odoo checks every seat in the cart again. If the hold has expired and the seat is still free, the module renews the hold. If someone else has taken the seat, the buyer cannot pay and is asked to choose another seat.

The database also refuses a second attendee for the same seat and time slot, unless the first one is cancelled.

Privacy and security notes

  • The renderer is the published npm package @seatmap.pro/renderer, version 1.75.0. The seat page loads it from cdn.jsdelivr.net.
  • The renderer reads the venue from the Seatmap Pro public API with the public key and the event ID.
  • Odoo 19.0 does not send a Content Security Policy for website pages. If your reverse proxy adds one, allow scripts from https://cdn.jsdelivr.net, connections to that host and to your Booking API host, and images over https: for the venue background.

Limitations

  • The module covers the website. Seat selection in Point of Sale and in back-end sales orders is not supported yet.
  • The price on the map is the ticket’s price. Pricelists and discounts apply in the cart.
  • Standing areas from Seatmap Pro are not imported.
  • A buyer can hold up to 30 seats at once, the Odoo limit for one registration.
  • The module’s own texts are in English.

Troubleshooting

Seatmap Pro does not appear in Apps. Check that the seatmap_pro_event folder is in a directory on addons_path, restart Odoo, and select Update Apps List again. The module needs the eCommerce app, which Odoo installs as a dependency.

The venue could not be loaded. The message ends with the reason.

  • If Seatmap Pro returned HTTP 401 or 403, the organization token is wrong or belongs to another organization. Copy it again from the Admin panel.
  • If Seatmap Pro returned HTTP 404, check the event ID and the public key. Both must come from the organization that owns the event.
  • If the message says that the server administrator has not allowed a host, the Booking API address points to a host that is missing from SEATMAP_PRO_ALLOWED_API_HOSTS. Ask the administrator to add it, or go back to the default address.
  • If Seatmap Pro is not reachable, your server cannot open an HTTPS connection to the Booking API address. Check the outgoing firewall rules and the proxy settings of the server.

The import is refused because of a booked seat. The new venue version removes a seat that a buyer already holds or has bought. Restore the seat in the Seatmap Pro editor and load the venue again. If the seat has to go, cancel its attendee in Odoo first.

Buyers see an empty area instead of the map. Open the browser console on the seat page. If it reports a blocked script or request, your reverse proxy adds a Content Security Policy. Add the hosts listed in the privacy and security notes to it.

A pricing zone has no seats for sale. The zone has no ticket in the list on the Seatmap Pro tab, or the mapped ticket is not on sale at the moment. Check the mapping and the sale dates of the ticket.

The module code and its issue tracker are in the seatmap-pro-odoo repository on GitHub. For pretix and eventyay, see How to connect Seatmap Pro to pretix and How to connect Seatmap Pro to eventyay.

Type a feature, setting, endpoint or SDK method.