This commits refactors the code of the reconciliation, in order to facilitate the process of complex use cases, namely multi-currencies or cash-basis-taxes related (see details below). It also prepares the code for a second refactoring where we will save on each journal items the amount_currency and currency_id field (even in case of operation made in company currency), also in the sake of simplification. 1) Multi-currencies: - the account.partial.reconcile model now will have dedicated columns to specify the amount of the partial reconciliation in the debit_line_id currency and the credit_line_id currency. That comes in handy when dealing with journal items having different secondary currencies, but also allows some simplification. - residual_amount_currency computation changed accordingly - moved models account.full.reconcile and account.partial.reconcile in their dedicated .py file 2) Cash basis taxes - cash basis entries now handle correctly rounding errors to make sure the exact amount of gets reported when the reconciliation becomes full. - the account for the base amount of cash basis entries has to be set, now, on the company instead of on each cash basis tax. - that new 'property' field can be set at the CoA installation via the field property_cash_basis_base_account_id of account.chart.template, or going through the accounting settings. Was task task: 2243420 Was PR #50308 Related: odoo/upgrade#1121 Related: odoo/enterprise#10252 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
from . import test_account_move_reconcile
|
|
from . import test_account_move_payments_widget
|
|
from . import test_account_move_out_invoice
|
|
from . import test_account_move_out_refund
|
|
from . import test_account_move_in_invoice
|
|
from . import test_account_move_in_refund
|
|
from . import test_account_move_entry
|
|
from . import test_account_journal
|
|
from . import test_account_account
|
|
from . import test_account_tax
|
|
from . import test_account_analytic
|
|
from . import test_account_payment
|
|
from . import test_account_bank_statement
|
|
from . import test_account_move_partner_count
|
|
from . import test_account_move_rounding
|
|
from . import test_account_invoice_report
|
|
from . import test_account_journal_dashboard
|
|
from . import test_control_journal_account
|
|
from . import test_fiscal_position
|
|
from . import test_reconciliation
|
|
from . import test_search
|
|
from . import test_settings
|
|
from . import test_tax
|
|
from . import test_invoice_taxes
|
|
from . import test_templates_consistency
|
|
from . import test_account_all_l10n
|
|
from . import test_reconciliation_matching_rules
|
|
from . import test_account_onboarding
|
|
from . import test_portal_attachment
|
|
from . import test_tax_report
|
|
from . import test_transfer_wizard
|
|
from . import test_account_incoming_supplier_invoice
|
|
from . import test_account_payment_register
|