Thursday, May 22, 2025
3 changes · saas-17.4
Enhancements to existing features
Vendor bill journal item labels now include both the payment reference and bill reference when both are available. This makes accounting entries easier to identify and reconcile without changing the underlying accounting process.
Original PR description
This commit will change the _compute_name of account move line to add the bill reference to the name. Now when the bill has a payment_ref and a ref we do a concatenation of the two, otherwise we only display the payment ref or the ref or nothing. backport of: https://github.com/odoo/odoo/commit/dfd741b5abc19f65662d7515e87ceb5cb5254a62 task:4058751 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Accounting reports now show more accurate communication labels for receivable journal items after changes to how line names are generated. Subscription invoices also keep their intended labels when payment references are updated, avoiding confusing or incorrect entries in reports.
Original PR description
In this commit the community pr: https://github.com/odoo/odoo/pull/175170 we changed the way the name of the move line is computed for receivable. In the general ledger we use the name of the move line for the communication columns, so it needed to be adapted. Also since We changed a bit the _compute_name by adding a new depends on the ref, which was causing issue for the test_auto_payment_across_time. Since we are writing on the ref in the _subscription_post_success_payment function, the compute was triggered again and so the line name was wrong. The solution we chose is to override the compute and when the line has a sale order line that is from a recurring invoice, we don't compute it again. backport of: https://github.com/odoo/enterprise/commit/84aa4b974dbeca6e988461f9dfb4b05ddecf5282 https://github.com/odoo/enterprise/commit/985eda840bebb5d8da63ce60db9c94cd4ce0b365 task: 4058751
Starshipit deliveries no longer block order processing when the final shipping price is not immediately available. Odoo temporarily uses a zero cost, then automatically retrieves the correct price later and updates the delivery order and related sales order line.
Original PR description
**Description of the issue/feature this PR addresses:** This PR enhances the Starshipit integration to reliably handle scenarios where the exact shipping cost is not immediately available from…
**Description of the issue/feature this PR addresses:** This PR enhances the Starshipit integration to reliably handle scenarios where the exact shipping cost is not immediately available from Starshipit after label creation. Cost is fetched via a cron job and correctly applied to both the stock.picking's carrier_price and, crucially, the corresponding Sales Order delivery line. First commit removes the 3-tries loop, and was already reviewed on this [PR](https://github.com/odoo/enterprise/pull/85088). **Current behavior before PR:** When confirming a picking with a Starshipit Delivery method, the exact Shipping cost was not instantly available. The previous code had 3 attempts to retrieve it, before stopping the process, asking the user to try at a later time. **Desired behavior after PR is merged:** The price fetching becomes non-blocking. If Starshipit did not return an immediate `total_shipping_price`, a temporary price of 0.0 will be used. A Cron job will then run on all pickings with a 0.0 carrier price in order to fetch the exact price from Starshipit, and update the SO delivery lines. opw-4748113 When merging on `master`, further improvement might be to introduce a `starshipit_pending_price` boolean field instead of running the CRON job on all 0.0 carrier price pickings. With the new view `view_picking_form_inherit_stock` being introduced, runbot tests fail when migrating to 18.0. (Because view is not yet present in the 18.0 codebase) **How to test?** - On a runbot DB, install the `delivery_starshipit` module - Configure the DB to interact with the connector - Place a Sales Order with a delivery method configured to use Starshipit. - Confirm the Delivery. The shipping price, if not available, will be temporarily set to 0.0. - Run the Cron Job manually. You can check and activate the Cron by navigating to Settings > Technical > Automation > Scheduled Actions. - Check that the SO has been updated with the actual shipping price from Starshipit. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr