Monday, May 30, 2022
7 changes · master
Resolved issues and error corrections
This fixes an issue where a project's allocated hours could incorrectly reset to zero after adding an employee-related sales order line in the invoicing tab. Businesses can rely on project hour allocations remaining accurate when sales or pricing details are updated.
Original PR description
This commit fix the computation of allocated_hours field when there is origin id instead of id of project. task-2788878 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
Internal notes created when a customer views a quotation in the portal are now translated using the salesperson's or company's language instead of the customer's website or browser language. This keeps sales activity logs consistent and easier for internal teams to understand.
Original PR description
The note "Quotation viewed by customer" posted when a public user accesses an order on the portal (with a token) was translated in the "automatic" language, i.e. the website or user (or browser language). This doesn't make much sense since log notes are not meant to be shown to the user, only to the internal user(s) (/salesman). This commit makes sure that the message is not translated in the website/customer lang, but in the salesman or company language instead. Task - 2836421 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a crash that happened when users changed the checkbox for a suggested email recipient in the mail composer. The change keeps the recipient selection flow working smoothly, avoiding interruptions when composing messages.
Original PR description
Follow-up of #91671 (Task-2817547) Changes above fixed an issue with composer suggested recipient feature not properly prompting a dialog to create new partners. The fix was correct before #90678 (Task-2831082/Task-2849934), but it needs to be slightly adapted for this small technical changes. By omiting them, any change of checkbox state results in a crash. This commit properly adapt code in `_onChangeCheckbox` to take into account both changes.
This fixes a missing alert when a purchase order created from a sales order is cancelled for make-to-order buy products. Sales teams will now be notified that the original sales order may be impacted, helping them react before customer fulfillment is disrupted.
Original PR description
Description of the issue/feature this PR addresses: This should fix cancelling PO originating from SO for Buy/MTO products not currently in stock. Current behavior before PR: Create and confirm Sale Order with a product that is marked as MTO and Buy and none is in stock. Purchase Order is created automatically. If you cancel SO, notification of exception is brought to PO. But if you cancel PO no notification of exception is brought to SO even the code to do so is there in sale_purchase module in PurchaseOrder's _activity_cancel_on_sale but purchase_line.sale_line_id is not present so it doesn't get to the point of notifying the SO. Desired behavior after PR is merged: It should work both ways - i.e. if PO is cancelled SO should be notified as well. I guess this concerns PR #43366 so maybe @ryv-odoo or @sle-odoo could have something to say. Thank you. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixes an issue where re-enabling the blog page top banner could cause an error after a user had added content at the top of the page. The banner is now added without removing or replacing existing page blocks, preserving user edits and improving reliability.
Original PR description
Before this commit an error appeared if a block had been set at the top of the /blog page and the user wanted to re-enable the "top banner - Name / Latest Post" option. This commit solves the problem and improves the behavior by not trying to replace the block that the user had set at the top of the page. The option adds a top banner but does not remove the blocks present. Steps to reproduce the fixed bug: 1. go on /blog page 2. disable the customize option "Top banner - Name / Latest Post" 3. go in edit mode 4. drop a snippet in this new oe_structure 5. save the page 6. enable the customize option "Top banner - Name / Latest Post" =>traceback task-2774944 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes duplicate product records in the Sales demo data. It helps keep sample data cleaner and avoids confusion when users evaluate or demonstrate sales workflows.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
A small internal test update keeps the marketing automation test suite compatible with a newer underlying system method. This helps maintain reliable quality checks without changing the product experience for users.