odoo/documentation#10130

Created by Liam1717

Blocked

label
Liam1717:patch-2
head
5bf22f41f352998a5876be0e8929bd881bc9d27e
odoo/documentation
saas-17.2 #10130 missing statuses missing r+
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
master

Update shipping.rst

import re

def remove_shipping_methods(text):
# Define the sections to remove using regex
sections_to_remove = [
r"================\nShipping methods\n================.?\n(?=Website availability)",
r"================\nOwn shipping methods\n================.
?\n(?=Pickup in store)",
r"---------------\nPickup in store.?\n(?=Website availability)",
r"================\nShipping providers\n================.
?\n(?=Website availability)",
r"================\nDelivery method at checkout\n================.*?\n(?=.. image:: shipping/shipping-checkout.png)"
]

# Remove the defined sections
for section in sections_to_remove:
    text = re.sub(section, '', text, flags=re.DOTALL)

return text