Daily updates from Odoo
Tuesday, August 8, 2023
3 changes · master
Code cleanup and technical improvements
This update replaces older translation code references with the current shared translation service across multiple Odoo Enterprise apps. It is an internal cleanup that helps keep the platform easier to maintain, with no expected change to day-to-day user workflows.
Original PR description
In this commit, _t import from import { _t } from "@web/legacy/js/services/core"
and from web/static/src/legacy/js/core/translation.js are replaced by
@web/core/l10n/translation.js.
task-3292454
PR Community : https://github.com/odoo/odoo/pull/130865This refactoring simplifies how spreadsheet pivot tables are inserted by moving cell domain and style calculations into the pivot table component. It should make the feature easier to maintain while preserving the existing user experience.
Original PR description
The goal here is to simplify the code of the insertion of a pivot in the pivot core plugin. Now the domain/style for each cell of the pivot is computed in the `SpreadsheetPivotTable` class, which simplify a lot the plugin. Task: [3318865](https://www.odoo.com/web#id=3318865&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
German POS certification order data is now prepared through one shared process instead of several separate ones. This makes the point of sale code easier to maintain and helps keep behavior consistent across table syncing, order sharing, and ticket views.
Original PR description
Before when serializing a pos.order from the server, we are using several methods for different use cases. table syncing: get_table_draft_orders order sharing: get_draft_share_order_ids ticket screen: export_for_ui All of these methods had their own logic. Now, to improve the maintainability of point_of_sale, order serialization is only performed via export_for_ui. Community PR: https://github.com/odoo/odoo/pull/130695 TaskId: 3449870