Skip to main content
Shopify

Shopify sync log cleanup in Odoo: a glossary of the scheduled action

The scheduled action Shopify Cleanup Old Sync Logs runs every 7 days and deletes sync logs older than 90 days that finished successfully or partially; it leaves everything else alone.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 5 November 2026

Key facts

Module
Shopify
Versions
Odoo 17, 18, 19 and 20
Checked
in the connector's source code, version 17.0 and 20.0 · against the sources linked at the end
Reading time
4 min

This action keeps the Shopify sync history in Odoo under control. The module's code states its purpose: keep only the last 90 days of logs so the database does not bloat.

The action and its schedule

Shopify Cleanup Old Sync Logs
The module's scheduled action that deletes old Shopify sync logs. Each time it runs, it carries out the cleanup described in the next section.
Every 7 days
The frequency of the action: one pass every 7 days.
Active on install
The action is active as soon as the module is installed. If you suspect it is doing nothing, checking that it is still active comes first.
Endless repetition
In Odoo 17.0 the action is defined to repeat endlessly. The action exists in every published branch: 17.0, 18.0, 19.0 and 20.0.
Code-generated diagram showing the cleanup scheduled action, which runs every 7 days and is active on install, with the sync logs menu below it
Code-generated diagram based on the module's published code, not a screenshot of Odoo: the action (Odoo 17.0, 18.0, 19.0 and 20.0) and the menu from which the logs are opened.

The action's label depends on the language of your Odoo, as the diagram shows. With Odoo in English it is Shopify Cleanup Old Sync Logs.

Code-generated diagram showing the action's name in Spanish, German, French, Italian and Portuguese
Code-generated diagram based on the module's published translations, not a screenshot of Odoo: in Spanish, Limpieza de registros de sincronización antiguos de Shopify; in German, Shopify-Bereinigung alter Synchronisierungsprotokolle; in French, Nettoyage des anciens journaux de synchronisation Shopify; in Italian, Pulizia vecchi registri di sincronizzazione Shopify; in Portuguese, Limpeza de registos de sincronização antigos do Shopify.
Your Odoo doesn't talk to Amazon, Temu or Shopify?
Video: Your Odoo doesn't talk to Amazon, Temu or Shopify?

What it deletes on each pass

90-day cut-off
The limit date the action works out every time it runs: the current moment minus 90 days. Logs older than that cut-off are candidates for deletion.
Start of the sync
The date the action compares with the cut-off is the log's start date, that is, the moment that sync began.
States that get cleaned
Only logs whose state is success or partial are picked up. A log in any other state is left out, even if it is older than the cut-off.
Deletion
Logs that meet both conditions (they started before the cut-off and are in one of those two states) are deleted, all in the same pass.
Information line in the log
If the pass has deleted anything, it writes an information line to the Odoo log saying how many entries it cleaned, with the text Shopify: cleaned up … old sync log entries. (the ellipsis is the number). If there was nothing to delete, that line is not written.

Who can run it and where to see the logs

Administrators only
The action first checks that whoever runs it is an administrator. If not, it stops with the message Only an administrator can run this scheduled action. and nothing is deleted.
Shopify › Technical › Sync Logs
The menu from which the sync log records are opened, which are exactly what this action cleans.
Viewer
The permission required by the Shopify part of the menu. Without it you do not see that part.
Manager
The permission required by the Technical part. Without it you do not see that part, and so you do not see Sync Logs either.

Versions and subscription

Published branches
The module is published on Odoo Apps for 17.0, 18.0, 19.0 and 20.0, and the cleanup action is in all four.
FlexigoTech Cloud subscription (Connector plan)
The module is a one-off payment per version and needs the subscription. The Connector plan costs €49/month or €490/year excluding VAT. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted, monitors the sync and emails you if it fails.

One pass, from start to finish

When the action starts, the first thing it checks is that whoever runs it is an administrator; if not, it stops there with the message and nothing is deleted. If they are, it works out the 90-day cut-off, looks for logs that started before the cut-off and are in the success or partial state, counts them and deletes them. Only at the end, and only if there were any, does it leave the information line in the log.

What to check if it does nothing

A pass that deletes nothing may be exactly what you should expect. These are the checks, in the order that makes sense:

  • The action is still active: it is active on install, so if someone switched it off, it no longer runs.
  • The cadence: it runs every 7 days, and that is the wait between one pass and the next.
  • Whether there is anything to delete: you need a log that started more than 90 days ago and whose state is success or partial. If everything is more recent or in another state, the pass deletes nothing and does not write the log line.
  • Who runs it: if they are not an administrator, it stops with Only an administrator can run this scheduled action..
  • The logs themselves: if you have the Manager permission, open Shopify › Technical › Sync Logs and look at the start dates and states of the oldest ones.

How FlexigoTech can help

FlexigoTech implements Odoo 17, 18, 19 and 20 and develops custom connectors and integrations. You can see the module and buy it on its page or read the Odoo Apps listing. If another part of the module interests you, there is what the stock-fetching button does, step by step.

Keep reading

What the Pull Stock button does in the Shopify connector for OdooWhat the Pull Stock button does in the Shopify connector for Odoo: when it shows, what it checks, what changes in your stock and which error it can raise.The 'is now the primary location' notice in the Shopify connector for OdooWhat the 'is now the primary location' notice in the Shopify connector for Odoo means, when it appears and how to change the primary location.Shopify Connector error: no payload to create the sales orderWhat the Shopify Connector for Odoo message means when you press Create Sale Order on an order with no stored data, when it appears and how to fix it.
Checked in the connector's source code (version 17.0 and 20.0) and the linked sources

Sources