Display favorite users on menu form
This commit is contained in:
1 parent
9828450d2f
commit
50122462ed
2 files changed
+13
-3
No files matched your search
@@ -107,6 +107,8 @@ class UIMenu(
|
||||
('keyword', '=', 'tree_open'),
|
||||
])
|
||||
favorite = fields.Function(fields.Boolean('Favorite'), 'get_favorite')
|
||||
favorites = fields.Many2Many(
|
||||
'ir.ui.menu.favorite', 'menu', 'user', "Favorites")
|
||||
|
||||
@classmethod
|
||||
def order_complete_name(cls, tables):
|
||||
|
||||
@@ -16,7 +16,15 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
|
||||
<field name="action_keywords" string="Actions" colspan="4"/>
|
||||
|
||||
<field name="groups" colspan="4"/>
|
||||
<notebook>
|
||||
<page name="groups">
|
||||
<field name="groups" colspan="4"/>
|
||||
</page>
|
||||
<page name="favorites">
|
||||
<field name="favorites" colspan="4"/>
|
||||
</page>
|
||||
<page name="action_keywords" string="Actions">
|
||||
<field name="action_keywords" string="Actions" colspan="4"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
Reference in new issue
Block a user