details: https://code.tryton.org/tryton/commit/0b69c726fc26
branch: default
user: Cédric Krier <[email protected]>
date: Fri Dec 19 19:44:31 2025 +0100
description:
Use product sequence to sort for Shopify
An inactive product is not in the products list of the template.
Closes #14439
diffstat:
modules/web_shop_shopify/web.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d15404d62b4c -r 0b69c726fc26 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Mon Dec 29 17:43:15 2025 +0100
+++ b/modules/web_shop_shopify/web.py Fri Dec 19 19:44:31 2025 +0100
@@ -356,7 +356,7 @@
for template, t_products in groupby(
products, key=lambda p: p.template):
t_products = sorted(
- t_products, key=template.products.index)
+ t_products, key=lambda p: p.sequence or 0)
p_inventory_items = [
inventory_items[p] for p in t_products]
p_sale_prices = [sale_prices[p.id] for p in t_products]