Skip to main content
Temu

The message «Set a product template before loading lines.» in Temu Connector for Odoo

The message Set a product template before loading lines. appears when you press Load Variants on a base price proposal whose Product Tmpl field is empty. You fix it by choosing a product template in that field and pressing the button again. Below you will find the exact condition in the code and what the button does once the check passes.

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

When exactly it appears

The message Set a product template before loading lines. appears when you press the Load Variants button on a base price proposal. That button calls a method whose first check is the Product Tmpl field of the proposal: if it is empty, the method raises the message and the action stops.

It is a single condition, and it comes before anything else the button does. When the warning appears, the action is cut short and no change is saved to the proposal. The button has no view condition: it is always visible in Odoo 17, 18 and 19, so you can press it with the field empty and meet the message.

Diagram showing the menu path, the Load Variants button, the Product Tmpl field and the error message
Diagram generated from the published module code, not an Odoo screenshot: from top to bottom, the menu, the button and the field, and the message (Odoo 17.0, 18.0 and 19.0). The labels in the diagram are in English, as in the module code.
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 means

The Load Variants button builds the proposal lines from the variants of a product template. That template is the one you choose in the Product Tmpl field. If the field is empty, the code has nowhere to take the variants from and stops there with the message.

The warning says nothing about the connection to Temu, credentials or instance data. The condition is only that the proposal you have open has no product template.

Step by step to fix it

  1. Open the menu Temu › Catalog › Pricing › Price Rules. The proposal forms, titled Base Price Proposals, open from there.
  2. Open the proposal you were working on.
  3. Find the Product Tmpl field, in the Scope group of the form.
  4. Choose in Product Tmpl the product template whose variants you want to load.
  5. Press Load Variants again. With the field filled in, the check passes and the method carries on with the load.
  6. Review any lines that have appeared on the proposal before you keep working with it.

What the button does once the check passes

It is worth knowing before you press it, because the button does more than add lines. According to the code published for Odoo 19.0, once the Product Tmpl check has passed, this happens:

  • It takes the variants of the product template that are active. Inactive variants are not loaded.
  • For each of them it prepares a line with its details. If the proposal has the option to load only variants linked to Temu switched on, the variants without the goodsId and skuId identifiers are skipped.
  • If no line is left, the action stops with a different warning and nothing on the proposal is changed.
  • If at least one variant has been loaded, it writes the lines to the proposal, puts it in the draft state and clears its error log. Any lines the proposal had before are replaced by the new ones.

So if you had already worked on the lines of a proposal and the load goes through, pressing Load Variants again replaces them with the new load.

Questions that come up

Do I lose anything when the message appears? No. The check comes before the load and the action stops, so the proposal stays as it was.

Do I need to configure anything elsewhere to make it go away? The condition in the code is only that Product Tmpl is empty. Filling it in on the proposal itself is what passes the check.

Does the button label change with the language of Odoo? Yes, the label follows the language of Odoo. With Odoo in English the button is called Load Variants, the text in the module code. The module also publishes a Spanish translation of it.

Diagram showing the Load Variants label and how its text depends on the language of Odoo
Diagram generated from the published module translation files, not an Odoo screenshot: the button label as the user sees it depends on the language of Odoo, and in English it reads Load Variants.

Which versions show it

The message is in the published code of branches 17.0, 18.0 and 19.0, and the Load Variants button is visible in those three versions with no condition. The detail of what the button does follows the Odoo 19.0 code.

If you need help with the connector

Temu Connector for Odoo is a one-off purchase per Odoo version and needs the FlexigoTech Cloud subscription: the Connector plan costs €49 a month or €490 a year, excluding VAT. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted, watches the synchronisation and emails you if it fails. You can see the module on its flexigotech.com page.

If you are implementing Odoo and want to set up the catalogue and price proposals with Temu, FlexigoTech implements Odoo 17, 18, 19 and 20 and builds connectors and custom integrations. If another warning from the connector turns up, see the other articles on the blog.

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