details: https://code.tryton.org/tryton/commit/6721dc0b22e1
branch: 7.8
user: Cédric Krier <[email protected]>
date: Mon Dec 29 20:47:40 2025 +0100
description:
Order product by position instead of sequence for Shopify
0b69c726fc26 order by the non-existing sequence field instead of
position.
(grafted from 74b709c7572c523bc9b3a6f79e240b6d105b3f5a)
diffstat:
modules/web_shop_shopify/web.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8b1672a793f8 -r 6721dc0b22e1 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Fri Dec 19 19:44:31 2025 +0100
+++ b/modules/web_shop_shopify/web.py Mon Dec 29 20:47:40 2025 +0100
@@ -356,7 +356,7 @@
for template, t_products in groupby(
products, key=lambda p: p.template):
t_products = sorted(
- t_products, key=lambda p: p.sequence or 0)
+ t_products, key=lambda p: p.position 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]