addons14/document_page/models/document_page.py
def _onchange_parent_id(self):
        """We Set it the right content to the new parent."""
        if (
            self.content in (False, self._HTML_WIDGET_DEFAULT_VALUE)
            and self.parent_id.type == "category"
        ):
            self.content = self.parent_id.template
We Set it the right content to the new parent.
We Set it the right content to the new parent.
We Set it the right content to the new parent .
def _onchange_parent_id(self):
        if (
            self.content in (False, self._HTML_WIDGET_DEFAULT_VALUE)
            and self.parent_id.type == "category"
        ):
            self.content = self.parent_id.template
def _onchange_parent_id ( self ) : if ( self . content in ( False , self . _HTML_WIDGET_DEFAULT_VALUE ) and self . parent_id . type == "category" ) : self . content = self . parent_id . template
We Set it the right content to the new parent.
We Set it the right content to the new parent .
"""We Set it the right content to the new parent."""
self