[IMP] document_page: add Browse Wiki Content view Kanban

This commit is contained in:
Kaynnan Lemes
2024-04-02 18:23:19 -03:00
committed by Justine Doutreloux
parent dcb85fe9e3
commit d0df693b95
4 changed files with 214 additions and 6 deletions

View File

@@ -94,6 +94,9 @@ class DocumentPage(models.Model):
compute="_compute_backend_url",
)
image = fields.Binary("Image", attachment=True)
color = fields.Integer(string="Color Index")
@api.depends("menu_id", "parent_id.menu_id")
def _compute_backend_url(self):
tmpl = "/web#id={}&model=document.page&view_type=form"