Daily updates from Odoo
Tuesday, July 25, 2023
2 changes
Code cleanup and technical improvements
This reorganizes several Point of Sale add-ons so their technical files follow a consistent structure and naming pattern. The change helps teams maintain and update these add-ons more reliably, without changing business features or workflows.
Original PR description
pos*: l10n_cl_edi_pos,l10n_de_pos_cert,l10n_de_pos_res_cert, l10n_mx_edi_pos,pos_hr_mobile,pos_iot,pos_l10n_se,pos_settle_due, The POS has a large number of add-on modules. As such, it is important…
pos*: l10n_cl_edi_pos,l10n_de_pos_cert,l10n_de_pos_res_cert, l10n_mx_edi_pos,pos_hr_mobile,pos_iot,pos_l10n_se,pos_settle_due, The POS has a large number of add-on modules. As such, it is important that they all respect strict guidelines when it comes to file structures. Before, each module had more or less it's own rules when it came to this, apart from the fact that code was mostly organised into `js` and `xml` folders. In this PR, we move to a much more structured approach, in which each module follows the following pattern: src/ |-- app/ <-- the module's own new logic |-- overrides/ | |-- components | | |-- overridden_component_a | | | |-- overridden_component_a.js | | | |-- overridden_component_a.xml | | | |-- overridden_component_a.css | |-- models | | |-- overridden_model.js Apart from the structural changes, this PR introduces changes to file names, such that they respect the default pattern of snake_case naming. In this commit, we move the files. In the following one we make the needed changes in the code, such as adapting imports. Task:
This update removes old compatibility code for legacy app actions in Enterprise web features. It simplifies maintenance and helps keep the interface aligned with the newer platform architecture, with little expected impact for everyday users.