book: view zeigt in listansicht bei unterkonten in fremdwährung

den korrekten wert,
book-form: feld für saldo in unternehmens-währung
This commit is contained in:
Frederik Jaeckel 2022-10-02 15:04:10 +02:00
parent 4a7ee23e2c
commit 59dfb94bee
7 changed files with 238 additions and 13 deletions

View file

@ -98,6 +98,13 @@ class ConfigTestCase(ModuleTestCase):
'rate': Decimal('1.05'),
}])
# delete unwanted rates
usd_1 = CurrencyRate.search([
('currency.id', '=', usd.id),
('date', '!=', date(2022, 5, 2)),
])
CurrencyRate.delete(usd_1)
return (usd, euro)
@with_transaction()