The carrier argument passed to the _create_delivery_line function can be different to the carrier already existing in the sale order so we should use the correct setting of carrier where we are calling the function. closes odoo/odoo#36424 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>