Support writing None on Shopify identifier

Closes #12760
(grafted from bb238a3b22bac533dcf5c180eefb90390766152b)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2023-11-20 12:04:37 +01:00
1 parent bedcfce09b
commit a9dd98cc16
1 file changed
+3 -1
+3 -1
View File
@@ -29,8 +29,10 @@ class IdentifierMixin:
@classmethod
def set_shopify_identifier(cls, records, name, value):
if value is not None:
value = int(value) - (1 << 63)
cls.write(records, {
'shopify_identifier_signed': int(value) - (1 << 63),
'shopify_identifier_signed': value,
})
@classmethod