Daily updates from Odoo
Thursday, May 16, 2024
2 changes · 17.0
Code cleanup and technical improvements
This update moves the Document State component from the Mexico localization module to the core accounting module, making it available for use across other features. A placeholder component remains in the Mexico module to maintain compatibility with existing customizations. This improves code organization and reduces duplication across the system.
Original PR description
Moving the DocumentState component from l10n_mx_edi to account. As `l10n_mx_edi_document_state` is still referenced in various views and we cannot change them in stable, we keep an empty shell in l10n_mx_edi inheriting the new generic component in account. In master, we remove `l10n_mx_edi_document_state`. task-3141517,3595436 see https://github.com/odoo/odoo/pull/165549
The document_state component has been moved from localization-specific modules to the core Account module. This change allows multiple localization modules (Colombia, Mexico, Romania, and others) to reuse the same component instead of maintaining duplicate code, improving consistency and reducing maintenance overhead.
Original PR description
This allows using the component from l10n_co_edi, l10n_mx_edi, l10n_ro_edi and other localizations. task-3141517,3595436 see https://github.com/odoo/enterprise/pull/62514