details: https://code.tryton.org/tryton/commit/8d0862f093c7
branch: 7.6
user: Cédric Krier <[email protected]>
date: Thu Jan 15 17:28:20 2026 +0100
description:
Round quantity instead of truncate for Shopify fulfillment
Closes #14502
(grafted from 61524b93e2e758daa82e7d81f3a66ff64823328e)
diffstat:
modules/web_shop_shopify/stock.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a92bf35caac0 -r 8d0862f093c7 modules/web_shop_shopify/stock.py
--- a/modules/web_shop_shopify/stock.py Thu Jan 15 15:22:09 2026 +0100
+++ b/modules/web_shop_shopify/stock.py Thu Jan 15 17:28:20 2026 +0100
@@ -148,7 +148,7 @@
or not self.origin.shopify_identifier):
return
identifier = self.origin.shopify_identifier
- quantity = int(Uom.compute_qty(
+ quantity = round(Uom.compute_qty(
self.unit, self.quantity, self.origin.unit))
for fulfillment_order in fulfillment_orders:
if fulfillment_order.status in {'cancelled', 'success'}: