Skip to main content
Amazon

Amazon restock recommendations scheduled action: a glossary

Once a day, the scheduled action asks Amazon for the restock recommendations report of each account that has it switched on, polls until the report is ready and imports its rows. It is active on install and exists in Odoo 17.0, 18.0, 19.0 and 20.0; if it seems to do nothing, start with the account conditions.

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

Key facts

Module
Amazon
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
5 min

Once a day, this scheduled action asks Amazon for the restock recommendations report of each account that has it switched on, then imports its lines into Odoo. The terms below follow the order in which you will meet them.

The action, its frequency and its versions

Scheduled action
It is called Amazon SP-API - Sync restock recommendations report (opt-in). When it runs, it goes through the module's Amazon accounts and starts the sync on those that meet the conditions explained further down.
Diagram showing the name of the scheduled action in Spanish, German, French, Italian and Portuguese
Diagram built with code from the module's published translations, not an Odoo screen: the name of the action changes with the language of your Odoo.
Once a day
The action runs once a day. On each run the code asks Amazon for a new report for every account that qualifies.
Active on install
It is active as soon as the module is installed and exists on every published branch: 17.0, 18.0, 19.0 and 20.0. In Odoo 17.0 the action repeats indefinitely.
Diagram of the scheduled action, which runs once a day and is active on install, next to the accounts menu
Diagram built with code from the module's published code, not an Odoo screen: the action running once a day, active on install in Odoo 17.0, 18.0, 19.0 and 20.0, and the accounts menu, with labels in English as in the module's code.
Your Odoo doesn't talk to Amazon, Temu or Shopify?
Video: Your Odoo doesn't talk to Amazon, Temu or Shopify?

Which accounts it goes through

Opt-in and active account
The action only picks accounts that are active and have the restock recommendations sync switched on. The name of the action ends in (opt-in). An account that does not meet both conditions is left out of the run.
Accounts
The menu Amazon › Configuration › Accounts, where the account forms open. Each level asks for a permission: Amazon asks for Viewer; Configuration and Accounts ask for Manager. If you lack the permission for a level, you do not see it.
Name
The account's Name field. It appears on the Accounts form, in the Identity tab, Account group, and also in the accounts list. It is the name the action uses to identify the account when it records a failure.

What it does on each run

Source
The result text of each run has a Source: … line. It says CRON if the scheduled action started the run and Manual otherwise. It also records the account (Account: …) and, once Amazon has created the report, its identifier.
Status polling
After requesting the report, the code checks its status several times. The number of attempts and the wait between them come from the account's values; if they are empty or zero, it uses 12 attempts with 10 seconds between them. It stops polling as soon as the status is DONE, CANCELLED or FATAL.
Report status
With DONE, the run carries on. With CANCELLED or FATAL, the result text says Amazon did not generate a usable report. With any other status once the attempts run out, it notes that polling timed out. In those last two cases the action saves the date and the result and the run for that account ends there.
Report document
With the report at DONE, the code needs its document. If Amazon marks the report as finished but gives no document, it notes that, saves the result and ends. If there is one, it downloads the text and imports it into the restock recommendation lines, up to a per-run maximum taken from the account's values (if empty or zero, it uses 10000 lines).
Rows
While importing, the result text counts the report rows, the processed rows, and those created, updated, skipped and with an error: Report rows, Processed rows, Created, Updated, Skipped and With error.
Saved result
When a run ends with the report imported, without a document, cancelled, failed or with the polling time exhausted, the code writes the date and time of the last run and the result text (cut to 5000 characters) on the account. In those cases, if the scheduled action started the run, no message is posted to the account's chatter, so do not expect to find that result there.

If the action seems to do nothing

Failure on one account
If the sync for an account raises an exception, the action catches it, records a warning in the server log with the account name and carries on with the others. A failure on one account does not stop the run for the rest.

So the order for checking is:

  • The action is still active. It is active when the module is installed.
  • The account meets both conditions: it is active and has the restock recommendations sync switched on. Find it in Amazon › Configuration › Accounts by its Name.
  • Amazon may have returned CANCELLED or FATAL, or may not have finished the report within the polling attempts. The run ends for that account and the next one requests a new report.
  • A DONE report without a document also ends the run for that account before anything is imported.
  • An empty chatter does not prove the action did not run: when a run started by the scheduled action ends with the report imported, without a document, cancelled, failed or with the polling time exhausted, nothing is posted there.
  • The subscription: the module needs FlexigoTech Cloud. Without a subscription, or with the service suspended, what the subscription provides stops; your data stays in your Odoo.

Cost and help with setup

The module is a one-off purchase per Odoo version (published for 17.0, 18.0, 19.0 and 20.0) and needs the FlexigoTech Cloud subscription, Connector plan: €49 a month or €490 a year excluding VAT, up to 3 accounts on the platform. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted, watches the sync and emails you if it fails. Prices per version are on the Odoo Apps page and the module page.

FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. If you would like us to review how this sync is set up in your installation, get in touch.

Keep reading

Checked in the connector's source code (version 17.0 and 20.0) and the linked sources

Sources