Skip to main content
Octopia (Cdiscount)

Octopia Connector: the Refresh Selected button, step by step

The Refresh Selected button on the Offers screen queries Octopia for each offer using its seller external reference and sales channel, then brings the state, the best-offer data and the external competition into Odoo. It is always visible, in Odoo 17, 18, 19 and 20.

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

Where the button is and what each offer needs

The Refresh Selected button is on the Offers screen, which you open from Octopia › Offers › Offers. It is always visible, with no state condition, and it exists in the Odoo 17, 18, 19 and 20 branches. The Octopia menu level requires the Octopia User permission: without it, you do not see that level.

Code-generated diagram of the Octopia › Offers › Offers menu with the Refresh Selected button underneath
Code-generated diagram based on the module, not an Odoo screenshot: the menu path and the button, with the labels in English as in the original code.

The second diagram shows how the button is labelled depending on the language of your Odoo.

Code-generated diagram with the button label in five languages: Actualizar seleccionadas, Ausgewählte aktualisieren, Actualiser la sélection, Aggiorna selezionate and Atualizar selecionadas
Code-generated diagram based on the module's published translations, not an Odoo screenshot: in Spanish, Actualizar seleccionadas; in German, Ausgewählte aktualisieren; in French, Actualiser la sélection; in Italian, Aggiorna selezionate; in Portuguese, Atualizar selecionadas.

Before you press it

  • You have the Octopia User permission and open the screen from Octopia › Offers › Offers.
  • The offer has its Account filled in: it is the account the button uses to open the connection to Octopia. It is on the Offers form, in the Listing group, and also in the list.
  • The offer has its Sales Channel, in the same group and in the list: the button sends the code of that channel in the query.
  • The offer has its Seller External Reference, in the same group and in the list. It is the value the button uses to look the offer up in Octopia. The field help reads: Unique offer reference within the sales channel; duplicate references inside one package reject ALL its requests.

The module is a one-off purchase per version and needs a FlexigoTech Cloud subscription (Connector plan: €49 a month or €490 a year, excluding VAT). The connection to Octopia goes through that service, which stores the credentials encrypted, monitors synchronisation and emails you if it fails.

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

What the button does, in order

The button goes through the offers it acts on, one by one, and for each of them it does this:

  1. It opens the connection to Octopia using the offer's Account.
  2. It asks Octopia for the offers matching the Seller External Reference and the code of the Sales Channel, and includes the sales channel feedback in the request. It filters on the reference because a filter the query does not know would be ignored and would return the whole channel.
  3. It reads the offers in the response and ignores anything that does not look like an offer.
  4. It compares references: if an entry carries a reference (or an offer identifier) different from your offer's, it skips it. It works with the first entry that matches and stops looking at the rest.
  5. It looks at the state Octopia returns and writes it only if it is one of the states the module knows.
  6. It collects the market data from that entry: best offer (the Buy Box), best-offer price, channel feedback and external competitor.
  7. It saves on the offer whatever it has gathered. If there is nothing to save, it writes nothing.

The changes are written to the offer in Odoo.

What changes on the offer

Octopia dataWhat the button does
Offer stateWrites it only if the returned state is one the module knows; otherwise it keeps the previous one.
Whether it is the best offerIf the response includes that data, it stores it as yes or no.
Best offer: price and delivery costIf the response includes that block, it stores both amounts; an empty value is stored as zero.
Channel feedbackIf the response includes that block, it stores its full content as indented text.
External competitorIf an external competing offer appears inside that feedback, it stores the marketplace name, price, delivery cost, total price, price index and update date.

When a block is missing from the response, the value already on the offer stays as it was. If the channel feedback does not arrive, the external competitor data is not touched either.

After pressing it, and when it does not change what you expect

If nothing changes

  • Check that the Seller External Reference is exactly the one the offer has in Octopia: the button discards entries with a different reference and, if none matches, it writes nothing on that offer.
  • Check that the Account and the Sales Channel are the ones for the offer you want to query: the request is built from them.
  • If the connection fails, remember that it goes through FlexigoTech Cloud, which monitors synchronisation and emails you if it fails.

If some data changes and some does not

  • The state does not move but other data does: the state is written only if Octopia returns one the module knows.
  • An amount shows as zero: if Octopia sends the block without a price or delivery cost, zero is stored.
  • The external competitor is not updated: it is written only when the response carries the channel feedback and, inside it, an external competing offer.
  • The competitor name is empty: if that offer arrives without a marketplace name, it is stored empty.

How FlexigoTech helps

FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. If you are setting up your Octopia offers in Odoo, we can review the account, channels and references with you before you start querying.

The module is published on Odoo Apps for 17, 18, 19 and 20; you can see it on its Odoo Apps page.

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