addons14/document_page/wizard/document_page_create_menu.py
def default_get(self, fields_list):
        """Get Page name of the menu."""
        res = super().default_get(fields_list)
        page_id = self.env.context.get("active_id")
        obj_page = self.env["document.page"]
        page = obj_page.browse(page_id)
        res["menu_name"] = page.name
        return res
Get Page name of the menu.
Get Page name of the menu.
Get Page name of the menu .
def default_get(self, fields_list):
        res = super().default_get(fields_list)
        page_id = self.env.context.get("active_id")
        obj_page = self.env["document.page"]
        page = obj_page.browse(page_id)
        res["menu_name"] = page.name
        return res
def default_get ( self , fields_list ) : res = super ( ) . default_get ( fields_list ) page_id = self . env . context . get ( "active_id" ) obj_page = self . env [ "document.page" ] page = obj_page . browse ( page_id ) res [ "menu_name" ] = page . name return res
Get Page name of the menu.
Get Page name of the menu .
"""Get Page name of the menu."""
self
fields_list