Thursday, May 2, 2024
2 changes · saas-17.2
Resolved issues and error corrections
Repeated server actions that make changes now execute each time instead of being skipped because of cached results. This prevents action buttons, such as those updating quantities or performing other changes, from silently doing nothing on later clicks.
Original PR description
Since [1], when a server action is loaded, the server will execute the action directly and return the resulting action. The issue with this, is that in the client side, for performance issues, all the loaded actions are cached. This means that, when executing twice a server action, it will only be run once. This is the correct behaviour, if the server action returns a window action without having side effects (for instance the CRM menu). But this is not the desired behaviour if the server action run some code without returning a window action (for instance, if we click on an action button, to modify a quantity). This server actions after running the desired code returns a closing action. This commit fix this issue, forcing to load all the actions that are in the cache and that are of type closing action. This will have as effect to run the server action again. [1]: https://github.com/odoo/odoo/commit/f49e97e9ad41c1c5e7123bad9c429a9af2732b73
Updates Colombian electronic invoicing so documents comply with DIAN Anexo 1.9 validation rules that took effect on May 1. This prevents affected invoices, credit notes, and debit notes from being rejected due to missing reference fields or unnecessary exchange-rate information.
Original PR description
Issue: DIAN activated the changes of Anexo 1.9 on May 1st. Currently our documents fail some (new) validations: * The TDC section should only be exported when the invoice is not in COP (since it is used for exchange rate information) * New tags ENC_11 and ENC_12 are needed in case there is no referenced invoice on a debit or credit note. (example discounts for early payments or discounts for rebates) Fix: This commit fixes these issues s.t. the validation passed again. * The TDC section is only displayed if invoice is not in company currency (assumed to be 'COP' anyway in more places) * The new ENC_11 and ENC_12 tags are added (conditionally) **manual forward port** of https://github.com/odoo/enterprise/pull/61841