FIX tests. (Since 468ca93e07)

Add new currency option (Since 458f6b0327)

Task #046274
This commit is contained in:
Juanjo Garcia 2023-01-09 13:11:42 +01:00
parent ba3e602bb2
commit 09053f4ae1
2 changed files with 2 additions and 2 deletions

View File

@ -9,5 +9,5 @@ __all__ = ['Currency']
class Currency(metaclass=PoolMeta):
__name__ = 'currency.currency'
def round(self, amount, rounding=ROUND_HALF_UP):
def round(self, amount, rounding=ROUND_HALF_UP, opposite=False):
return super(Currency, self).round(amount, rounding=rounding)

View File

@ -180,7 +180,7 @@ class AccountEsTestCase(CompanyTestMixin, ModuleTestCase):
invoice.account = payable
else:
invoice.account = receivable
invoice.on_change_type()
invoice.journal = invoice.on_change_with_journal()
invoice.party = party
invoice.on_change_party()
invoice.payment_term = term