mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[13.0][MIG] document_page_reference
This commit is contained in:
@@ -52,6 +52,12 @@ class DocumentPage(models.Model):
|
||||
)
|
||||
content_parsed = fields.Html(compute="_compute_content_parsed")
|
||||
|
||||
def get_formview_action(self, access_uid=None):
|
||||
res = super().get_formview_action(access_uid)
|
||||
view_id = self.env.ref("document_page.view_wiki_form").id
|
||||
res["views"] = [(view_id, "form")]
|
||||
return res
|
||||
|
||||
@api.depends("history_head")
|
||||
def _compute_content_parsed(self):
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user