details: https://code.tryton.org/tryton/commit/8b1672a793f8
branch: 7.8
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
(grafted from 0b69c726fc2643d79cce08251fdf6c81bc28e3fa)
diffstat:
modules/web_shop_shopify/web.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4f816ab3cf26 -r 8b1672a793f8 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]