odoo_clicks2cart/inspect_layout_header.py
2026-03-02 21:31:24 +05:30

10 lines
211 B
Python

v = env.ref('website.layout')
arch = v.arch_db
start = arch.find('<header')
if start != -1:
end = arch.find('</header>') + 9
print(arch[start:end])
else:
print("Header not found in website.layout")