details:   https://code.tryton.org/tryton/commit/74b709c7572c
branch:    default
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.
diffstat:

 modules/web_shop_shopify/web.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3561242b561a -r 74b709c7572c modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Tue Dec 23 12:09: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]

Reply via email to