mirror of
https://github.com/NaN-tic/trytond-account_es.git
synced 2023-12-14 05:02:55 +01:00
FIX tests. (Since 468ca93e07
)
Add new currency option (Since 458f6b0327
)
Task #046274
This commit is contained in:
parent
ba3e602bb2
commit
09053f4ae1
|
@ -9,5 +9,5 @@ __all__ = ['Currency']
|
||||||
class Currency(metaclass=PoolMeta):
|
class Currency(metaclass=PoolMeta):
|
||||||
__name__ = 'currency.currency'
|
__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)
|
return super(Currency, self).round(amount, rounding=rounding)
|
||||||
|
|
|
@ -180,7 +180,7 @@ class AccountEsTestCase(CompanyTestMixin, ModuleTestCase):
|
||||||
invoice.account = payable
|
invoice.account = payable
|
||||||
else:
|
else:
|
||||||
invoice.account = receivable
|
invoice.account = receivable
|
||||||
invoice.on_change_type()
|
invoice.journal = invoice.on_change_with_journal()
|
||||||
invoice.party = party
|
invoice.party = party
|
||||||
invoice.on_change_party()
|
invoice.on_change_party()
|
||||||
invoice.payment_term = term
|
invoice.payment_term = term
|
||||||
|
|
Loading…
Reference in a new issue