Skip to main content
Octopia (Cdiscount)

Octopia Connector's Poll Status button: myths and facts

Poll Status asks Octopia how a cancellation request is going and updates its State in Odoo; it only appears while the request is in progress or blocked. Depending on the answer, it raises an alert about a block or, if Octopia reports the cancellation as done, it may cancel the sales order or create a credit note, under the conditions explained below. These are the misconceptions worth dropping, with what the button really does.

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

Key facts

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

Where the button is and when you see it

The Poll Status button is on the Cancellations screen, opened from the menu Octopia › Orders › Cancellations. The Octopia part of the menu requires the Octopia User permission. The button is in the published branches of the module: Odoo 17, 18, 19 and 20.

Code-built diagram: the menu Octopia › Orders › Cancellations and, below it, the Poll Status button
Diagram built from the module's published code, not a screenshot of Odoo. The labels are in English, as in the code, and the button is in Odoo 17, 18, 19 and 20.

It only shows when the State field of the request says it is in progress or blocked. With the default values the button does not appear.

Code-built diagram of the text Poll Status in each Odoo language
Diagram built from the module's published translations, not a screenshot of Odoo. With Odoo in Spanish the button reads Consultar estado; in German, Status abfragen; in French, Vérifier le statut; in Italian, Verifica stato; in Portuguese, Poll Status.
48 business hours to accept each Cdiscount order. Do it in Odoo
Video: 48 business hours to accept each Cdiscount order. Do it in Odoo

Five misconceptions about Poll Status

Myth: "The button is available on any cancellation request"

Fact: it only shows with the request in progress or blocked. And even if it were run on several requests at once, in Odoo 20 the code processes only those in those two states and leaves the rest as they are.

Myth: "Every click changes the state"

Fact: for each request, the button uses the request's account to ask Octopia for the cancellations of that order. If the request holds a single reference, the query is narrowed to it. Of what comes back, the module keeps the items whose status it recognises. If none are left, the only thing that changes is Last Poll Date: the State is untouched.

That field is on the Cancellations form, read-only: the button fills it in, not the user.

Myth: "If one line of a partial cancellation is done, the request is done"

Fact: the outcome is decided from all the recognised items together.

  • If any is blocked, the request becomes blocked at once.
  • If all are done, it becomes done.
  • In any other case, it stays in progress.

When the request does not hold a single reference, the module discards items whose type (full or partial cancellation) differs from the request's Event Type, which can be Full Order or Specific Lines. If it does hold one, the query is already filtered and whatever Octopia returns is taken as belonging to it. Then the new State and the poll date are written.

Myth: "You only find out about a block by opening the request"

Fact: when the outcome is blocked, the module schedules a to-do activity on the request's Octopia order. It is assigned to the account's responsible user or, if the account has none, to whoever clicked the button. The summary is Octopia cancellation BLOCKED and the note reads:

The cancellation request for order … is Blocked at Octopia -- contact Octopia support (quote the sync log traceId).

If scheduling the activity fails, the code only records the failure in the technical log and carries on.

Myth: "When Octopia accepts, Odoo cancels the order or creates the credit note unconditionally"

Fact: when the request becomes done, the module tries to mirror the cancellation in Odoo, but with conditions set by the code:

  • If the Octopia order has no linked sales order, nothing more happens.
  • If the sales order has no posted customer invoices, the request is Full Order and the sales order is not already finished or cancelled, it cancels the sales order.
  • If there are posted customer invoices, the account has automatic credit note creation switched on (it is opt-in) and the request has no credit note yet, it creates one.
  • For a Full Order, the credit note reverses the first posted invoice, with the reference Octopia cancellation … (…).
  • For Specific Lines, the credit note includes only the cancelled lines, so it does not credit too much. Each line is titled Cancellation - … and the reference is Octopia partial cancellation … (…). If there are no lines with their sales line, nothing is created.

What to check after clicking

  • On the Cancellations form, the State and Last Poll Date.
  • On the Cancellations list, the Order, Account and Event Type columns, to find the request.
  • If it ended up blocked, the to-do activity on the order.
  • If it ended up done, the sales order and, where the conditions above apply, the credit note.

Subscription and help

The module is a one-off purchase per Odoo version (published for 17, 18, 19 and 20) and needs the FlexigoTech Cloud subscription: the Connector plan costs €49/month or €490/year excluding VAT. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted, watches the synchronisation and emails you if it fails.

If you are implementing Odoo and want to adapt this cancellation flow or tie it into other processes, FlexigoTech implements Odoo and builds custom connectors and integrations. To see how another button in the module works, read What the Import button does.

Keep reading

What the Submit to Octopia button of Octopia Connector does, step by stepWhat the Submit to Octopia button does in Bulk Invoice Imports: when it shows, what it checks, what it changes and the one error it can raise.What the Import button of Octopia Connector does, step by stepWhat the Import button of Octopia Connector does in Odoo: when it shows, what it imports, what changes, the notice it gives and the log entry it leaves.What the Create Vendor Bill button in Octopia Connector doesWhat the Create Vendor Bill button in Octopia Connector does in Odoo: when it shows, what it checks, what it creates and where it can stop.
Checked in the connector's source code (version 20.0) and the linked sources

Sources