Skip to main content
Temu

What the “Refresh Logistics” button in Temu Connector for Odoo does

The Refresh Logistics button sits on the Temu return form: it checks that the return has its parent number, asks Temu for the logistics data and updates the return in Odoo; if that number is missing, it stops with Parent After-sales SN is required.

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

Key facts

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

Where the button is and when it shows

Returns open from the menu Temu › Orders & Fulfillment › Returns. The Refresh Logistics button is on the Temu Returns form. The view puts no condition on it: it shows on any return, and the button is present in the published branches for Odoo 17, 18 and 19. What follows comes from the Odoo 19.0 code.

Code-generated diagram of the returns menu, the Refresh Logistics button and the message that can stop it
Diagram generated from the module's published code (not an Odoo screen): the returns menu, the button and, beside it, the message that can stop it. The labels are in English, as in the code.
Code-generated diagram of the button label as shown with Odoo in Spanish
Diagram generated from the module's published translations (not an Odoo screen): the button label as the user sees it with Odoo in Spanish.
Temu orders in Odoo every 15 minutes. Stock out every 5
Video: Temu orders in Odoo every 15 minutes. Stock out every 5

What it does when you press it, step by step

These are the steps in the order the button runs them on the return you are looking at.

  1. Open the return from Temu › Orders & Fulfillment › Returns and press Refresh Logistics.
  2. First check: the module looks at whether the Parent After Sales Sn field is empty. If it is, the action stops with the message Parent After-sales SN is required. and nothing is saved. That field is visible on the Temu Returns form and also in its list.
  3. Request to Temu: using the return's instance (the Instance field, also visible on the form and in the list), it asks Temu for the data of the parent return using the Parent After Sales Sn number. If After Sales Sn is filled in on the return, it sends that too in the request.
  4. Reading the reply: the module pulls the return's data out of Temu's reply: status, reason, buyer comment, amount and currency, dates and number of items, among others. To fill in some values it also relies on the original content the return already had stored.
  5. Filtering: from that data it drops the instance, the Temu identifier of the return and the original content, none of which are rewritten from here (the last sync date is set afterwards with the current time). If reading the reply yields a status, it is written even when it comes back empty; the rest of the data goes through a filter that decides what gets written.
  6. Recording what came back: on top of that it adds the full logistics reply, the reply to the request together with the API method that was used, the date and time of the last logistics sync and of the last sync, and it clears the previous error.
  7. Tracking number: if the reply carries a logistics list, its first entry has a tracking number and the Label Tracking Number field is empty, the module fills it with that number. If the return already had one, this step leaves it alone.
  8. Saving: the return is written with all of the above. If anything fails in the request, the reading or the writing, the action stops, you see the error and what it was about to change is not saved.

The error the button can give

The message from the initial check is Parent After-sales SN is required.. It appears when you press Refresh Logistics on a return whose Parent After Sales Sn field is empty. It is the first thing the button looks at, before it talks to Temu, so if you see it no request has been sent and nothing on the return has changed.

What to do: open the return's form, or look at the Temu Returns list, and check whether Parent After Sales Sn has a value. While it is empty, the button will keep stopping with that message. For other failures (those that can come from the request to Temu or from the writing) the button stops the action and shows you the error that occurred.

What to check after pressing it

  • Open the Return Label tab on the form and look at Label Tracking Number: it is the field filled with the first tracking number in the logistics reply, and only if it was empty.
  • Review the return's status: if Temu's reply can be read, the button rewrites it with what it interprets from that reply.
  • Check that Instance is the instance you expect: the request is made with it.

What you need to use it

The module is a one-off payment per version and needs a FlexigoTech Cloud subscription: the Connector plan costs €49 a month or €490 a year, excluding VAT, for up to 3 accounts on the platform. It is published on Odoo Apps for Odoo 17, 18, 19 and 20; you can see it on its Odoo Apps page or on the module page at flexigotech.com.

If you want to read how another button in the module works with the same approach, there is another button of the module, step by step.

How FlexigoTech can help

FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. If you are setting up Temu returns handling in your Odoo and want someone to review it with you, get in touch.

Keep reading

What the Execute button in Temu Connector for Odoo does, step by stepWhat the Execute button on the Fulfillment form of Temu Connector for Odoo checks, which states it writes and which messages can stop it.
Checked in the connector's source code (version 19.0) and the linked sources

Sources