if we want to hide header and footer for only for one page we don't have to inherit view of header and footer. to hide header and footer for particular page solution is below
Add script as below to hide header and footer for the single web page.
you can put in your template after the website.layout call.
How to remove header and footer for only one website page odoo
remove header and footer website for one page
footer header website header