mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[MIG] document_page: Migration to 12.0
This commit is contained in:
committed by
FernandoRomera
parent
b7212b36ab
commit
28bd2f8566
@@ -14,7 +14,6 @@ class DocumentPageCreateMenu(models.TransientModel):
|
||||
'Menu Name',
|
||||
required=True
|
||||
)
|
||||
|
||||
menu_parent_id = fields.Many2one(
|
||||
'ir.ui.menu',
|
||||
'Parent Menu',
|
||||
@@ -53,7 +52,7 @@ class DocumentPageCreateMenu(models.TransientModel):
|
||||
'type': 'ir.actions.act_window',
|
||||
'target': 'current',
|
||||
}
|
||||
value['domain'] = "[('parent_id','=',%d)]" % (page.id)
|
||||
value['domain'] = "[('parent_id','=',%d)]" % page.id
|
||||
value['res_id'] = page.id
|
||||
|
||||
# only the super user is allowed to create menu due to security rules
|
||||
|
||||
Reference in New Issue
Block a user