This commit is contained in:
2026-02-03 15:57:12 +01:00
parent 44fc7dc855
commit f391e17fb6

View File

@@ -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):