naive porting of document_page odoo module