Tuesday, January 18, 2022
4 changes · master
Enhancements to existing features
This update makes image processing more reliable when images are used across website, portal, and content features. It helps reduce errors when resizing or serving images, improving consistency for users managing online pages and media.
Odoo now supports country-specific rules for when commercial invoices are required for deliveries. For Indian localization, commercial invoices are always generated for shipments from India, helping businesses meet local shipping documentation requirements even for domestic deliveries.
Original PR description
Usually we want to create commercial invoices in case the warehouse is in a different country than the recipient. However, some countries like India need those documents for internal shipping as well. The added function can easily be overriden in a dedicated module for the countries that require such a commercial invoice. When the method `_should_generate_commercial_invoice` is called and the Indian localisation is active, the function should return True. When using delivery providers, with the ship_from country is IN, the commercial invoice information is mandatory. The indian law demands a commercial invoice when using shipping methods: https://cleartax.in/s/commercial-invoice/#:~:text=Shipping%20bill-,Time%20Limit%20for%20Raising%20a%20Commercial%20Invoice%20Under%20Indian%20Law,additional%20information%20may%20be%20necessary. related PR: https://github.com/odoo/enterprise/pull/23124 task-2701428
Odoo Sign now handles automatically filled fields linked to multiple related records without causing an error. It selects the most relevant related record and adds validation to catch incorrect field setup earlier, reducing configuration mistakes and signing disruptions.
Original PR description
In sign it is possible to link sign items to partner fields by setting the auto_field field in sign.item.type. However when linking x2many fields, a traceback occurs since it tries to access one field on a recordset with many records. This PR prevents the traceback by filtering the highest priority record from the recordset (defined by active and id values as defined in the spec) and using it to return the property. task-2658338
Resolved issues and error corrections
Documents now handle image processing more reliably, avoiding attempts to process unsupported PDF content as images. This improves document workflows by reducing errors when users work with files in Documents and spreadsheet-related document features.