A new field on tax groups makes it now possible for this group to be displayed under a subtotal label. If not set, this defaults instead to "Untaxed Amount", keeping the traditional behavior. This is intended for withholding taxes, which can now be implemented with negative taxes and a tax group with this field set. To do that, this commit entirely refactors the way amount_by_group worked, and replaces it with a more complete json field called tax_totals_json. It also streamlines the way taxe totals are displayed on invoices, PO and SO and makes it so that a common code is called instead of copy-pasting the same block 3 times as before. [IMP] purchase: always display tax totals by groups on purchases orders Before, tax totals on purchase.order's form were not shown by group, and were instead all aggregated in a single "Taxes" category. The same went for the pdf export. The portal view, though, did show the totals by group. We now display the tax groups in the same way all the time. closes odoo/odoo#74138 Task: 2457374 Related: odoo/enterprise#19802 Related: odoo/upgrade#2670 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
39 lines
1.4 KiB
Python
39 lines
1.4 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_invoice_tax_totals
|
|
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_move_line_tax_details
|
|
from . import test_account_journal_dashboard
|
|
from . import test_fiscal_position
|
|
from . import test_reconciliation
|
|
from . import test_sequence_mixin
|
|
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_payment_term
|
|
from . import test_account_payment_register
|
|
from . import test_tour
|