Closed alexis-via closed 2 months ago
This PR has the approved
label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 14.0-ocabot-merge-pr-880-by-pedrobaeza-bump-patch, awaiting test results.
Congratulations, your PR was merged at e07910c4f7410c72c79214999f0bfa965cff7517. Thanks a lot for contributing to OCA. ❤️
The module "delivery_price_method" only depends on "delivery". In the "delivery" module, send_shipping() can return nothing, cf https://github.com/odoo/odoo/blob/14.0/addons/delivery/models/delivery_carrier.py#L181
Without this fix, send_shipping() would crash when super() returns nothing.
FYI, if the OCA module base_delivery_carrier_label is installed, you may not see the crash, because base_delivery_carrier_label inherits send_shipping() and always return a list, cf https://github.com/OCA/delivery-carrier/blob/14.0/base_delivery_carrier_label/models/delivery_carrier.py#L43 But base_delivery_carrier_label and delivery_price_method don't depend on each other, so you can't know which one will be executed first.
Here is the backtrace: