From f391e17fb64bd36c72d1f9e55bfc6a3067ab58ef Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Tue, 3 Feb 2026 15:57:12 +0100 Subject: [PATCH] 03.02.26 --- modules/purchase_trade/party.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/purchase_trade/party.py b/modules/purchase_trade/party.py index 12b583d..33f7356 100755 --- a/modules/purchase_trade/party.py +++ b/modules/purchase_trade/party.py @@ -3,6 +3,7 @@ from trytond.pool import PoolMeta, Pool from trytond.exceptions import UserError from trytond.modules.purchase_trade.purchase import (TRIGGERS) from trytond.transaction import Transaction +from decimal import getcontext, Decimal, ROUND_HALF_UP class PartyExecution(ModelSQL,ModelView): "Party Execution" @@ -72,7 +73,7 @@ class Party(metaclass=PoolMeta): SlaPlace = Pool().get('party.execution.place') sp = SlaPlace.search([('pes','=', sla.id),('location','=',location)]) if sp: - return round(((sp[0].cost / 100) * 2204.62262),4) + return round(((sp[0].cost / Decimal(100)) * Decimal(2204.62262)),4) @classmethod def getPartyByName(cls, party, category=None):