From befa450e47394e35f7d27f34811a0e57ffba9c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 29 Sep 2025 11:15:52 +0200 Subject: [PATCH] Do not lock web shop records when fetching or updating Shopify order It is not needed as the unique constraint on the sale for the shopify identifier ensures that only one sale is created per order. Closes #14259 --- modules/web_shop_shopify/web.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/web_shop_shopify/web.py b/modules/web_shop_shopify/web.py index fcca8057c0..dd7760af39 100644 --- a/modules/web_shop_shopify/web.py +++ b/modules/web_shop_shopify/web.py @@ -474,7 +474,6 @@ class Shop(metaclass=PoolMeta): shops = cls.search([ ('type', '=', 'shopify'), ]) - cls.lock(shops) for shop in shops: last_sales = Sale.search([ ('web_shop', '=', shop.id), @@ -518,7 +517,6 @@ class Shop(metaclass=PoolMeta): shops = cls.search([ ('type', '=', 'shopify'), ]) - cls.lock(shops) now = dt.datetime.now() for shop in shops: sales = Sale.search([