Monday, May 27, 2024
3 changes · 17.0
Enhancements to existing features
This update significantly speeds up the process of cancelling large purchase orders. Previously, cancelling orders with over 50 lines would take several minutes or timeout; now the same operations complete in seconds. This improvement makes it practical for users to manage and cancel large orders without experiencing system delays.
Original PR description
# Current behavior: Cancelling a Purchase Order with more than 50 lines takes too much time to be processed. In the case of the client they had PO with more than 200 lines which makes it impossible for them to cancel them. # Step to reproduce: - Install mrp and mrp_subcontracting - Create PO with more than 50 order lines or more - Confirm the PO - Try to cancel it - Take a long time or timeout # Benchmark (made in 16): | No. of PO lines | Before | After | |-----------------|:-------:|:------:| | 9 | 650ms | 600ms | | 91 | 1min26 | 9s | | 273 | 4min50 | 34s | | 405 | 7min13 | 55s | # Fix: Batch more actions and records to reduce the number of queries generated by the ORM. # Reference: opw-3690875 Forward-Port-Of: odoo/odoo#166513 Forward-Port-Of: odoo/odoo#151526
Italian electronic document processing now validates files based on their actual XML structure rather than filename, making the system more reliable and consistent with other EDI methods. This change also improves handling of digitally signed files (.xml.p7m) by automatically removing signatures before processing.
Original PR description
Italian EDI used to look at the filename to determine whether the uploaded attachment is related to it or not. With this change we look at the structure of the XML file, making it more standard - it's what all other EDIs do. CADES signed files (.xml.p7m) have their signature removed and then they are treated like normal XML files. In order to be able to do this, we have to move the code that specially handles the account_predictive_bills for Italy to the `account` level. Related PR: odoo/odoo#163849 Related issue: #150382
Italian EDI document processing has been improved to validate the actual XML structure of uploaded files rather than relying on filename patterns. This makes the system more robust and consistent with how other EDI formats work. The change also properly handles digitally signed files (.xml.p7m) by removing the signature before processing.
Original PR description
Italian EDI used to look at the filename to determine whether the uploaded attachment is related to it or not. With this change we look at the structure of the XML file, making it more standard - it's what all other EDIs do. CADES signed files (.xml.p7m) have their signature removed and then they are treated like normal XML files. In order to be able to do this, we have to move the code that specially handles the account_predictive_bills for Italy to the `account` level. Old PR for master: odoo/odoo#165673 Related PR: odoo/odoo#163849 Related issue: #150382