Skip to main content
Octopia (Cdiscount)

Invoice not linked to any Octopia order: what nobody tells you

The Push to Octopia button on a customer invoice stops with Invoice … is not linked to any Octopia order. when the invoice has no Octopia order linked to it. Up to that point no PDF has been generated and nothing has been uploaded: what needs fixing is the link between the invoice and its order.

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

When the message appears

On the form of a customer invoice, the Push to Octopia button uploads the invoice PDF to the marketplace. To do that, the module looks for the Octopia orders linked to the invoice. If it finds none, the action stops and you see Invoice … is not linked to any Octopia order.

Diagram built from code, not an Odoo screen: the push to Octopia button and, below it, the message saying the invoice is not linked to any Octopia order
Diagram built from the module's published code (Odoo 17, 18, 19 and 20).

It only appears when you press the button

The message is raised by the method behind the Push to Octopia button, on the invoice view. In other words, it appears when you press that button.

The button is not visible on every invoice. It is hidden when the invoice is not a customer invoice, when it is not posted, and when it is already marked as Octopia Pushed, a field that no view shows. That condition is the same in Odoo 17, 18, 19 and 20. So if you can see the button, the invoice is a posted customer invoice that is not yet marked as sent, and that is the kind of invoice that can give this message.

The condition is an empty list

The code takes the Octopia orders linked to the invoice and checks whether that list is empty. If it is, it raises the message. Nothing else enters that check, neither the customer, nor the amount, nor anything on the order: only whether there is a linked order or not.

The ellipsis stands for the invoice name

The message text has a gap where the module writes the name of the invoice, so you know which one it refers to. It is the same message for every invoice; only that name changes.

Diagram built from code, not an Odoo screen: the same message in Spanish, German, French, Italian and Portuguese
Diagram built from the module's published translations: with Odoo in Spanish it reads La factura … no está vinculada a ningún pedido de Octopia.; the other four lines are its German, French, Italian and Portuguese versions.
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 has happened and what has not

Nothing has been touched before the message

The order in the code is this: first it checks that the invoice is a posted customer invoice, then it looks at the linked orders, and only then does it generate the PDF. For each linked order, the method uploads the PDF to Octopia, marks the order as sent and adds a success entry to the module's synchronisation log. At the end it marks the invoice as sent.

When the message appears, none of those steps has started: no PDF has been generated, nothing has been uploaded, and neither the invoice nor any order has changed. An error of this kind stops the action and nothing it was going to change is saved.

The type and state check comes first

The check that the invoice is a posted customer invoice happens before the method looks at the orders. Because the button is hidden when the invoice does not meet those conditions, Invoice … is not linked to any Octopia order. is the message that corresponds to a posted customer invoice that has no Octopia order linked.

With linked orders, the PDF goes to each one

For contrast: if the list is not empty, the method goes through every linked order and uploads the invoice PDF to each. According to the method's own description, the upload replaces the order's previous documents. The message we are dealing with is therefore the sign that there is no order to upload that invoice to.

How to resolve it

The message says the invoice has no Octopia order associated. What to do depends on the invoice in front of you:

  • If the invoice does not belong to an Octopia order, there is no order to upload it to and this button is not the way to handle it.
  • If it does belong to an Octopia order, the invoice has to be linked to that order before you press again. While the list of linked orders stays empty, the result will be the same every time.
  • Once it is linked, press Push to Octopia again from the invoice form.

After fixing it, the button is still there

Because the action stops before marking anything, the invoice does not become Octopia Pushed. That means the button stays visible while the invoice is a posted customer invoice, and you can press it again once the link is in place. After a successful upload the invoice is marked and the button is hidden.

If you want the full picture of what the button does, from when it appears to what it changes, it is covered in What the «Push to Octopia» button does.

How FlexigoTech can help

If an invoice that should have an Octopia order arrives without one and you do not know why, FlexigoTech implements Odoo 17, 18, 19 and 20 and builds connectors and custom integrations, so we can review with you how orders and invoices move through your installation. Octopia Connector is a one-off purchase per Odoo version and needs the FlexigoTech Cloud subscription (Connector plan, €49 a month or €490 a year, excluding VAT).

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