Return credit limit amount for sale in company currency

Closes #13718
This commit is contained in:
Cédric Krier committed 2024-11-30 23:43:00 +01:00
1 parent df1021103f
commit 3d12183ebd
1 file changed
+4 -1
+4 -1
View File
@@ -13,7 +13,10 @@ class Sale(metaclass=PoolMeta):
@property
def credit_limit_amount(self):
"Amount to check against credit limit"
return self.untaxed_amount
pool = Pool()
Currency = pool.get('currency.currency')
return Currency.compute(
self.currency, self.untaxed_amount, self.company.currency)
@classmethod
@ModelView.button