03.02.26
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user