Files
odoo_source/addons/delivery/models
Victor Feyens 29a8093b16 [FIX] delivery,website_sale: do not make api request on page rendering
Following a fix in 16.3 with 5052b9e4a15155c694cf005fdf330997770c6cac,
backported in 16.0+ with commit d28a8f67da06e58358b40636d1dca1f91a84e1ad,
the rates for the different carriers were computed on page loading,
to make sure unavailable carriers were hidden.

Nevertheless, this leads to significant increases of /shop/payment page
loading time depending on the enabled carriers.

This commit restricts the previous fix to the targeted type of carriers,
aka `base_on_rule` ones, whose rates do not depend on third party API
requests.

closes odoo/odoo#149657

X-original-commit: 99c8bda43f6f3bb027f8e03a753aaf2bb7ac585f
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2024-01-18 12:01:04 +00:00
..