From 0512626e26d68c293c6bcbd1ef7500e6f20a806e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 3 Sep 2026 15:49:20 +0200 Subject: [PATCH] Use a sentinel as default value for setting attribute only if changed For new instances, we must set also the attribute with value `None` as they may be tested later. Closes #15060 (grafted from bfe3756af384f4fce94244761d5f5dd3f62d0ff6) --HG-- branch : 8.0 --- modules/web_shop_shopify/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/web_shop_shopify/common.py b/modules/web_shop_shopify/common.py index 626da6f2af..2c8d78a374 100644 --- a/modules/web_shop_shopify/common.py +++ b/modules/web_shop_shopify/common.py @@ -188,6 +188,6 @@ class IdentifiersMixin(IdentifiersUpdateMixin): def setattr_changed(record, name, value): - if getattr(record, name, None) != value: + if getattr(record, name, object()) != value: setattr(record, name, value) return True