def METHOD_NAME(self):
    # When we have the context 'website_id' it means that we are doing the order from
    # e-commerce. So we don't want to add the delivery line automatically.
    if self.env.context.get("website_id"):
        return False
    return get_bool_param(self.env, "auto_add_delivery_line")