Menu: allow login and manager

This commit is contained in:
resteve 2014-06-16 11:12:47 +02:00
parent eec46ab198
commit 006a1b832b
3 changed files with 8 additions and 0 deletions

2
cms.py
View file

@ -26,6 +26,8 @@ class Menu(ModelSQL, ModelView):
right = fields.Integer('Right', required=True, select=True)
childs = fields.One2Many('galatea.cms.menu', 'parent', 'Children')
sequence = fields.Integer('Sequence')
login = fields.Boolean('Login', help='Allow login users')
manager = fields.Boolean('Manager', help='Allow manager users')
@staticmethod
def default_active():

View file

@ -12,6 +12,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="parent"/>
<label name="sequence"/>
<field name="sequence"/>
<label name="login"/>
<field name="login"/>
<label name="manager"/>
<field name="manager"/>
<label name="active"/>
<field name="active"/>
</form>

View file

@ -7,4 +7,6 @@ this repository contains the full copyright notices and license terms. -->
<field name="slug"/>
<field name="sequence"/>
<field name="active"/>
<field name="login"/>
<field name="manager"/>
</tree>