Tuesday, July 23, 2024
3 changes
1 change
Enhancements to existing features
The appointment website app now works with the updated drag-and-drop page builder that lets users choose snippets from a preview dialog. Preview data and images were added so appointment snippets appear clearly in the selection dialog, making it easier for website editors to add appointment content.
Original PR description
[IMP] website_enterprise, *: Adapts appointment for new dragNDrop system *: website_appointment Following the change in the way of dragging and dropping a snippet onto the page (by selecting it from a dialog displaying the actual previews of snippets). The "website_appointment" app has been adapted to this change in this commit. Data has also been added in this commit so the dynamic appointment snippet can be shown in the snippet dialog. task-3919405
2 changes
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.