Daily updates from Odoo
Thursday, June 8, 2023
3 changes
Code cleanup and technical improvements
This update reorganizes JavaScript files across several Odoo Enterprise apps to align their structure with related community code changes. It is an internal cleanup intended to make future maintenance easier without changing day-to-day user workflows.
Original PR description
[REF] mail_enterprise, *: reorganize JS files See community counter-part for more details. Part of task-3265211 https://github.com/odoo/odoo/pull/124168
Point-of-sale template names were standardized across several localization and hardware-related modules. This makes the codebase more consistent and easier to maintain, with no expected change to day-to-day user workflows.
Original PR description
pos*: l10n_de_pos_cert, l10n_mx_edi_pos, pos_iot, pos_l10n_se, pos_preparation_display, pos_settle_due Previously, none of the templates of the pos were namespaced, this means that depending on context, you have to access them differently: in xpath the module prefix is necessary even if the template name itself isn't namespace, but in owl components you cannot use the namespaced version because owl doesn't have the notion of modules. This commit namespaces the component templates of all the pos modules so that it's consistent with the rest of the code base. It also removes some extraneous calls to super.setup() that were leftover and are not necessary for components extending directly owl's base Component. Linked-to: odoo/odoo#124069
This change simplifies how German POS certification data is prepared when closing a session by creating it directly in Python instead of converting it from a template. This reduces the risk of errors and makes the process easier to maintain, with no major expected change for end users.
Original PR description
[REF] l10n_de_pos_cert: replace rendering of json object from the xml Currently, the json object needed to close the session is obtained from an xml template that is transformed in python. This approach is not necessary and is also error prone. In this PR i refactor the code in order to create the object directly in Python Task 3323623