Change 1 of 6
Automatic price update
Changing the pricelist or rental period on a sales order automatically impacts the prices on existing sales order lines.
Official Odoo 20 release note
In plain words
Changing the pricelist or the rental period on an order now recomputes the prices of the existing lines right away. In Odoo 19 a pricelist change only showed an Update Prices button that had to be clicked.
Where to find it
- Open a rental quotation with lines.
- Change the Pricelist (or the Rental period): the Unit Price of the lines changes at once.
For users
No more forgotten Update Prices click; quotes always match the chosen pricelist and rental dates.
For developers
sale.order._onchange_pricelist_id_recompute_prices() calls _recompute_prices(); sale_renting adds _onchange_rental_dates() and limits the recompute to rental lines through _get_update_prices_lines().
Upgrading from Odoo 19
Custom views or code using show_update_pricelist or action_update_prices must be revised.
