mirror of
https://github.com/NaN-tic/trytond-galatea_cms.git
synced 2023-12-14 04:32:53 +01:00
Menu: allow login and manager
This commit is contained in:
parent
eec46ab198
commit
006a1b832b
3 changed files with 8 additions and 0 deletions
2
cms.py
2
cms.py
|
@ -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():
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue