details:   https://code.tryton.org/tryton/commit/afc7edb726e9
branch:    7.0
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 a702cd0cecf1 -r afc7edb726e9 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
@@ -149,7 +149,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'}:

Reply via email to