Daily updates from Odoo
Wednesday, October 16, 2019
2 changes
Resolved issues and error corrections
This fixes issues in subcontracting workflows where receipt details could display incorrectly or create duplicate component lines. Businesses using subcontracted manufacturing get clearer tracking information and cleaner operations, especially when using barcodes or lot-tracked components.
This fixes the way Odoo builds emails so that email clients such as Gmail display the HTML version instead of falling back to plain text. The change helps marketing and other customer-facing emails appear as designed, reducing the risk of confusing or less polished messages.
Original PR description
After the refactor of mail sending with the newest python API (18299d7), the order of multipart/alternative was wrong for email. Indeed, in the MIME protocol [1], for The Multipart/alternative subtype the order is significant: "In general, user agents that compose multipart/alternative entities should place the body parts in increasing order of preference, that is, with the preferred format last". This bug caused some issues with mail marketing (see related task) with Gmail web client (see the plaintext instead of html mail). The fix is to inverse the order of adding alternative in the mail content. [1] https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html TASK_ID : 2084989 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr