Tuesday, July 23, 2024
2 changes · 17.0
Enhancements to existing features
The Czech tax reporting system is being updated to use the taxable supply date instead of the invoice date for tax calculations. This change ensures more accurate tax reporting by using the date when goods or services are actually supplied, rather than when they are invoiced. The tests have been updated to reflect this new behavior.
Original PR description
[IMP] l10n_cz_reports: Adapt cz test on taxable date CZ is going to rely on taxable_supply_date and not the invoice date So, We need to adapt the tests on the new behavior task-id#3983749 odoo-pr: https://github.com/odoo/odoo/pull/168933
Studio's view editing feature has been optimized to process changes much faster. The system now uses a more efficient comparison method when normalizing views, which significantly reduces the time it takes to save edits. This improvement makes the Studio interface more responsive when users customize their forms and views.
Original PR description
When changes are made through studio, the view needs to be normalized first which in turn requires the use of difflib.ndiff that is notorious
for slowness in some cases. Refer to this issue on difflib
https://github.com/python/cpython/issues/119105 for an analysis of why
it is slow. In our case, we only care about added and removed lines
which means ndiff is not needed. Instead unified_diff is used which is
much faster.
This PR adapts the module to use difflib.unified_diff over difflib.ndiff
to speedup edit_view request when making any modifications to the view.