Skip to main content
Octopia (Cdiscount)

What the Pull Invoice Imports button in Octopia Connector does

The Pull Invoice Imports button asks Octopia for the account's list of invoice imports and leaves each import in your Odoo with its status and the date of the query. It sits on the accounts screen, is always visible, and makes imports submitted from other tools visible.

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 it is and who sees it

The Pull Invoice Imports button is on the Octopia Accounts screen. It is always visible: no condition in the view hides it, and it is present in the 17.0, 18.0, 19.0 and 20.0 branches of Octopia Connector.

To reach that screen, the menu is Octopia › Configuration › Accounts. Each part of the menu asks for a permission, and if you do not have one, you do not see that part:

  • Octopia asks for Octopia User.
  • Configuration asks for Octopia Manager.
  • Accounts asks for Octopia Admin.
Code-built diagram of the Octopia, Configuration, Accounts menu and the button that pulls invoice imports
Diagram built with code from the module's published code (not an Odoo screenshot): the menu path and the button, the same in Odoo 17, 18, 19 and 20.

With Odoo in English, the button is called Pull Invoice Imports. The second diagram shows its text in other languages.

Code-built diagram with the button text in five languages
Diagram built with code from the module's published translations (not an Odoo screenshot): Spanish, Descargar importaciones de facturas; German, Rechnungsimporte abrufen; French, Récupérer les imports de factures; Italian, Recupera importazioni fatture; Portuguese, Obter importações de faturas.
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

Step by step: what happens when you press it

What follows comes from the code published for Odoo 20.0. According to the code itself, the button's purpose is to make imports submitted by other tools visible and to store them by their import identifier.

  1. Go to Octopia › Configuration › Accounts and open the account you want to query.
  2. Press Pull Invoice Imports. The code loops over the accounts the action is run on and repeats what follows for each one.
  3. The module opens that account's connection and asks Octopia for the list of invoice imports.
  4. If the reply is a list, it goes through it; if it comes with an items section, it goes through that section. If nothing comes back, there is nothing to go through.
  5. Any element that is not a data record is skipped. From the others it takes the import identifier; if that is missing, it uses the other identifier the element carries; if that is missing too, the element is skipped.
  6. With that identifier it looks, within the same account, for an import already recorded. If one exists, it updates it; if not, it creates a new one.
  7. In each one it writes two things: the status reported by Octopia and the date and time of this query.

What changes in your Odoo

The action works by account and import identifier, so pressing it again does not create a second copy of the same import: it updates the one already there. The only things it writes on each import are the status and the date and time of the query; the code saves no other data from the element it received.

New imports are created with their account, their identifier, the status and that date. Existing ones keep their identifier and receive the new status and date.

When the data does not fit

The button's code has clear rules for anything odd that arrives:

  • Unknown status: the status is only saved if it is one the module recognises. If another arrives, the status is left empty. This also happens on an import that already existed: its status becomes empty in that query.
  • Element without an identifier: it is discarded, and nothing is recorded for it.
  • Element that is not a data record: it is discarded in the same way.

So the module can record an import with no status when Octopia reports one it does not recognise.

If you cannot see the button

If you cannot see the menu or the accounts screen, you are missing one of the permissions above: ask whoever administers your Odoo.

What it costs

Octopia Connector is a one-off purchase per Odoo version (published for 17, 18, 19 and 20) and needs the FlexigoTech Cloud subscription, Connector plan: €49/month or €490/year excluding VAT, with up to 3 marketplace accounts. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted and emails you if synchronisation fails. Listing on Odoo Apps.

How FlexigoTech can help

If you are implementing Odoo and want to connect Cdiscount or Octopia to your operations, FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. Tell us what you need and we will look at it with you.

Keep reading

What the Pull Orders button in Octopia Connector does, step by stepWhat the Pull Orders button in Octopia Connector does in Odoo: when it shows, what it checks, what it changes and what to review if an order fails.What the Pull Discussions button in Octopia Connector doesWhat the Pull Discussions button in Octopia Connector does in Odoo: when it appears, what it checks, what changes and how it can fail.What the «Retrieve Uploaded Invoices» button in Octopia Connector doesWhat the Retrieve Uploaded Invoices button in Octopia Connector does in Odoo: when it shows, what it asks Octopia and what it leaves on the order.
Checked in the connector's source code (version 20.0) and the linked sources

Sources