Monday, May 30, 2022
2 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
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