mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
document_page: improve link using menu
This commit is contained in:
@@ -47,3 +47,11 @@ class TestDocumentPage(common.TransactionCase):
|
||||
page.backend_url,
|
||||
'/web#id={}&model=document.page&view_type=form'.format(page.id)
|
||||
)
|
||||
menu = self.env.ref('knowledge.menu_document')
|
||||
page.menu_id = menu
|
||||
self.assertEqual(
|
||||
page.backend_url,
|
||||
'/web#id={}&model=document.page&view_type=form&action={}'.format(
|
||||
page.id, menu.action.id
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user