forked from Yaltik/golem
[IMP]GOLEM Security several improvements
This commit is contained in:
parent
1a3c1f0050
commit
f03e7cfd8b
@ -34,5 +34,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="implied_ids" eval="[(4, ref('group_golem_user'))]"/>
|
<field name="implied_ids" eval="[(4, ref('group_golem_user'))]"/>
|
||||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
<!-- Hide Default Articles Menu for all except root -->
|
||||||
|
<record id="account.menu_finance_payables" model="ir.ui.menu">
|
||||||
|
<field name="groups_id"
|
||||||
|
eval="[(6, 0, [ref('base.group_erp_manager')])]" />
|
||||||
|
</record>
|
||||||
|
<!-- Membership products only for managers -->
|
||||||
|
<record id="membership.menu_membership_products" model="ir.ui.menu">
|
||||||
|
<field name="groups_id"
|
||||||
|
eval="[(4, ref('golem_base.group_golem_manager'))]" />
|
||||||
|
</record>
|
||||||
|
<!-- Members Analysis for managers only -->
|
||||||
|
<record id="membership.menu_report_membership" model="ir.ui.menu">
|
||||||
|
<field name="groups_id"
|
||||||
|
eval="[(6, 0, [ref('golem_base.group_golem_manager')])]" />
|
||||||
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
@ -66,8 +66,7 @@ class GolemMember(models.Model):
|
|||||||
pictures_agreement = fields.Boolean('Pictures agreement?')
|
pictures_agreement = fields.Boolean('Pictures agreement?')
|
||||||
opt_out_sms = fields.Boolean('Out of SMS campaigns')
|
opt_out_sms = fields.Boolean('Out of SMS campaigns')
|
||||||
season_ids = fields.Many2many('golem.season', string='Seasons',
|
season_ids = fields.Many2many('golem.season', string='Seasons',
|
||||||
required=True, auto_join=True,
|
required=True, default=_default_season,
|
||||||
default=_default_season,
|
|
||||||
ondelete='restrict')
|
ondelete='restrict')
|
||||||
is_current = fields.Boolean('Current user?', default=False, readonly=True,
|
is_current = fields.Boolean('Current user?', default=False, readonly=True,
|
||||||
store=True, compute='_compute_is_current')
|
store=True, compute='_compute_is_current')
|
||||||
|
@ -113,7 +113,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="model">golem.member</field>
|
<field name="model">golem.member</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="GOLEM Members">
|
<tree string="GOLEM Members">
|
||||||
<field name="season_ids" />
|
<field name="season_ids" options="{'no_create': True}" />
|
||||||
<field name="number" />
|
<field name="number" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="contact_address" />
|
<field name="contact_address" />
|
||||||
|
@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
name="Member skills"
|
name="Member skills"
|
||||||
parent="base.menu_marketing_config_association"
|
parent="base.menu_marketing_config_association"
|
||||||
action="skills_action_list"
|
action="skills_action_list"
|
||||||
sequence="5" />
|
sequence="5" groups="golem_base.group_golem_manager" />
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||||
access_golem_season_user,Access GOLEM Season User,model_golem_season,golem_base.group_golem_user,1,0,0,0
|
access_golem_season_user,Access GOLEM Season User,model_golem_season,golem_base.group_golem_user,1,1,0,0
|
||||||
access_golem_season_manager,Access GOLEM Season Manager,model_golem_season,golem_base.group_golem_manager,1,1,1,1
|
access_golem_season_manager,Access GOLEM Season Manager,model_golem_season,golem_base.group_golem_manager,1,1,1,1
|
||||||
|
|
@ -77,7 +77,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<!-- Menus -->
|
<!-- Menus -->
|
||||||
<menuitem id="menu_seasons" name="GOLEM Seasons"
|
<menuitem id="menu_seasons" name="GOLEM Seasons"
|
||||||
parent="base.menu_marketing_config_association" sequence="2"
|
parent="base.menu_marketing_config_association" sequence="2"
|
||||||
action="action_list" />
|
action="action_list" groups="golem_base.group_golem_manager" />
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
Loading…
Reference in New Issue
Block a user