Skip to main content
Shopify

The «No sale order linked to this refund» error in Shopify Connector

The message No sale order linked to this refund. Cannot create credit note. appears when you press Create Credit Note on a refund whose Sale Order field is empty.

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

Key facts

Module
Shopify
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
3 min

Before pressing Create Credit Note

The condition behind the error is a single one: the Sale Order field of the refund is empty. Looking at it before you press the button tells you what to expect. The Create Credit Note button is in the refund view and, in Odoo 17, 18, 19 and 20, it is hidden when the refund is in the ignored state, or when it already has a credit note created and the Credit Note field is filled in. With the default values it is visible.

  • Open Sales › Shopify › Operations › Refunds and go into the refund you want to credit.
  • On the Shopify Refunds form, in the Amounts group, find the Sale Order field. You also see it in the refunds list, and in both places it is read-only.
  • If the field is empty, pressing the button gives the message No sale order linked to this refund. Cannot create credit note.
  • Check whether the refund already has a credit note: if the Credit Note field is filled in and the refund is in the credit-note-created state, the button is not even shown.
  • Keep the order of the method in Odoo 20 in mind: before looking at the sale order, it checks whether the refund is already in the credit-note-created state and has its note attached. If so, it opens that note instead of raising the error.
Diagram made with code, not an Odoo screen: the Refunds menu, the Create Credit Note button, the Sale Order field and the error message
Diagram generated from the module's published code (Odoo 17, 18, 19 and 20).
Your Odoo doesn't talk to Amazon, Temu or Shopify?
Video: Your Odoo doesn't talk to Amazon, Temu or Shopify?

When the message appears

The message appears when you press Create Credit Note. The method behind the button looks at the refund's sale order and, if there is none, raises the error. You see exactly this: No sale order linked to this refund. Cannot create credit note.

  • Confirm the condition: the code checks whether the Sale Order field is empty. If it is, the message is the expected one and there is no need to look for another cause.
  • Be clear about what happens to the action: the error stops it and nothing it was going to change is saved. No credit note is created in that attempt.
  • Do not try to fill the field in by hand. Sale Order is read-only: the module itself writes it, not the user.
  • If you work on another version, the same message is in the published code of Odoo 17, 18, 19 and 20.

The second diagram puts the text of the message side by side in Spanish, German, French, Italian and Portuguese, as the user sees it depending on the language of their Odoo. The Spanish one reads No sale order linked to this refund. Cannot create credit note.

Diagram made with code, not an Odoo screen: the same message in Spanish, German, French, Italian and Portuguese
Diagram generated from the module's published translation files.

What to check afterwards

Since the field cannot be edited, while the form still shows Sale Order empty the credit note button will give the same message. According to its code, the module itself writes the field, not the user, and that code is reached from the Create Sale Order button.

  • Reopen the refund from Sales › Shopify › Operations › Refunds and see whether Sale Order now shows an order.
  • Once the form shows an order, press Create Credit Note again.
  • With the order linked, the method carries on: it looks at the order's posted customer invoices and at the items Shopify refunded, and uses them to prepare the credit note.
  • If the note is created, check that the refund moves to the credit-note-created state, that the Credit Note field is filled in and that the note's form opens.
  • If this message no longer appears when you try again, the Sale Order field holds an order: read the new alert in full, because it is a different matter.

What it costs and where to get help

Shopify Connector costs €9 per Odoo version, one-off payment and excluding VAT, for 17, 18, 19 and 20. It also needs the FlexigoTech Cloud subscription: the Connector plan costs €49 a month or €490 a year, excluding VAT.

If you are implementing Odoo and want someone to go through the refund flow with you, FlexigoTech implements Odoo 17, 18, 19 and 20 and develops custom connectors and integrations.

Keep reading

What the Shopify Connector Pull Stock button does, step by stepWhat the Pull Stock button in Shopify Connector does in Odoo: when it shows, what it checks, what inventory adjustments it makes and which errors it gives.
Checked in the connector's source code (version 20.0) and the linked sources

Sources