Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account: speedup _compute_tax_country_id
Speedup computation of tax_country_id by first filtering on record with fiscal_position_id.foreign_vat. Then group records without foreign_vat by company_id and call __setitem__ on each group. In the best case (1 company and no record with foreign_vat) this gives a speedup of 7.37s -> 450ms for 1000 records. This also speeds up the importing of account_bank_statements. opw-3576526 closes odoo#144164 X-original-commit: 7c7e24d Signed-off-by: Florian Gilbert (flg) <[email protected]>
- Loading branch information