Daily updates from Odoo
Thursday, May 23, 2024
6 changes · 17.0
Enhancements to existing features
This update enhances the testing framework for Mexican electronic invoicing (CFDI) by adding tools to easily validate test files with current dates and switch between test and production modes. This allows the system to send XML files directly to Mexico's SAT (tax authority) for real validation, ensuring the generated documents meet official requirements.
Original PR description
Add a setup allowing you to easily create xmls at today date and switch from external to standard mode. That way, in external mode, the XMLs are really send to the SAT in order to ensure their validity. community PR: https://github.com/odoo/odoo/pull/163938 Forward-Port-Of: odoo/enterprise#61741
This update improves the image editing experience in the web editor by allowing users to press the Escape key to quickly exit image transformation mode. Additionally, it prevents accidental image deletion when users are actively resizing or transforming images, making the editing interface more intuitive and user-friendly.
Original PR description
Desired behavior after PR is merged: I. This PR implements a functionality where pressing the `Escape` key removes the transform widget from the image. II. Also it ensures that pressing any character key does not result in the removal of the image when the transform widget is active. task-3839151
This update simplifies how the system retrieves shopping cart quantities for products, particularly those available for backorder. Previously, the cart quantity method would always return zero for out-of-stock items, limiting its usefulness. Now it provides accurate cart quantities for all products, making the system more flexible and reducing code duplication across the platform.
Original PR description
Description of the issue/feature this PR addresses: Improve versatility of `_get_cart_qty` method for 'product.product' model. As of now, this method automatically returns zero, for all products that…
Description of the issue/feature this PR addresses: Improve versatility of `_get_cart_qty` method for 'product.product' model. As of now, this method automatically returns zero, for all products that allow ordering when out-of-stock. This bit of logic is only necessary in one place (to generate combination info to display in `website_sale_stock.product_availability` view), making the method effectively useless in other places, like community modules. This commit simplifies the `_get_cart_qty` method logic, to make it more usable, and delegates the removed check only to the `_get_additionnal_combination_info` override. This also allows the method to be used in `_get_cart_and_free_qty`, to avoid needing to override cart quantity acquisition logic in multiple places. Current behavior before PR: The `_get_cart_qty` method, automatically returns zero, for all products, that allow ordering out-of-stock, preventing acquisition of cart quantity using this method, for these products. Desired behavior after PR is merged: Being able to get the current cart quantity for all products, using this method. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
When users upload files in Odoo, the system now sends the activity ID along with the file. This prevents duplicate documents from being created when a file is uploaded as part of an existing activity, improving the user experience and data organization.
Original PR description
When uploading a file, the activity ID is now sent to the server. This will help (for example) to avoid creating a second document if the file is uploaded in the context of an existing activity. ENT PR: https://github.com/odoo/enterprise/pull/59796 opw-3458850 Forward-Port-Of: odoo/odoo#164964 Forward-Port-Of: odoo/odoo#159943
This update improves the Spanish electronic invoice (Factura-E) export functionality by adding two important fields: FileReference and FileDate. These fields are now included in the exported invoice documents, ensuring compliance with Spanish electronic invoicing requirements and improving the completeness of exported financial records.
Original PR description
FileReference and FileDate fields are added to the Factura-E export. task-3864452 Forward-Port-Of: odoo/odoo#162791
This update adds a safety constraint to the HR module that prevents users from being accidentally deleted when they are linked to an employee record. Now, users must be manually removed from the employee record before they can be deleted, reducing the risk of unintended data loss.
Original PR description
Before this commit, you can delete an user linked to an employee without any warning. With this constraint, you need to manually remove the user on the employee record, so it cannot be done by accident.