Saturday, May 25, 2024
4 changes · saas-17.2
Miscellaneous changes
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 Forward-Port-Of: odoo/odoo#165549
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 Forward-Port-Of: odoo/odoo#165549
When a purchase order is imported through an EDI or the OCR, a line section "From PXXXXX document" is inserted in the lines before the actual import of the PO content. This had the side effect to disable the import of the currency from the PO because it's only imported if the invoice doesn't already contain invoice lines. Related ticket: 3756004 Forward-Port-Of: odoo/odoo#166566
Original PR description
When a purchase order is imported through an EDI or the OCR, a line section "From PXXXXX document" is inserted in the lines before the actual import of the PO content. This had the side effect to disable the import of the currency from the PO because it's only imported if the invoice doesn't already contain invoice lines. Related ticket: 3756004 Forward-Port-Of: odoo/odoo#166566
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 Forward-Port-Of: odoo/enterprise#62514
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 Forward-Port-Of: odoo/enterprise#62514
When the yearly cost is recomputed, beecause the change of a benefit re-triggered it, it is badly recomputed if the contract contains extra time off. To avoid this issue, we us the function _get_yearly_cost with inverse param to true that correctly handle the value of the extra time off in the yearly cost. The amount of the yearly cost can slightly change, few cents, because of the precision lost caused by computing gross from yearly cost and then recomputing yearly cost based on the gross
Original PR description
When the yearly cost is recomputed, beecause the change of a benefit re-triggered it, it is badly recomputed if the contract contains extra time off. To avoid this issue, we us the function _get_yearly_cost with inverse param to true that correctly handle the value of the extra time off in the yearly cost. The amount of the yearly cost can slightly change, few cents, because of the precision lost caused by computing gross from yearly cost and then recomputing yearly cost based on the gross Forward-Port-Of: odoo/enterprise#62704