forked from Yaltik/golem
Add menu access rights to auditor groups
This commit is contained in:
parent
7147abcc50
commit
2201a3b87f
@ -201,25 +201,25 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<!-- Menus -->
|
||||
<menuitem id="golem_activity_menu" name="Activities" sequence="30"
|
||||
groups="golem_base.group_golem_user"
|
||||
groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
||||
web_icon="golem_activity,static/description/icon.png" />
|
||||
<menuitem id="golem_activity_menu_list" name="Activities"
|
||||
groups="golem_base.group_golem_user"
|
||||
groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
||||
parent="golem_activity_menu" sequence="1" action="golem_activity_action" />
|
||||
<menuitem id="golem_activity_menu_configuration" name="Configuration"
|
||||
parent="golem_activity_menu" sequence="90"
|
||||
groups="golem_base.group_golem_manager" />
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
||||
<menuitem id="golem_activity_type_menu_list" name="Activity Types"
|
||||
groups="golem_base.group_golem_manager"
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
||||
parent="golem_activity_menu_configuration" sequence="5"
|
||||
action="golem_activity_type_action" />
|
||||
<menuitem id="golem_activity_audience_menu_list" name="Activity Audiences"
|
||||
groups="golem_base.group_golem_manager"
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
||||
parent="golem_activity_menu_configuration" sequence="7"
|
||||
action="golem_activity_audience_action" />
|
||||
<menuitem id="product_category_menu" name="Categories"
|
||||
parent="golem_activity_menu_configuration" sequence="10"
|
||||
groups="golem_base.group_golem_manager"
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
||||
action="product_category_action" />
|
||||
|
||||
</data>
|
||||
|
@ -86,7 +86,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<menuitem id="golem_activity_registration_menu" name="Activity registrations"
|
||||
parent="golem_activity.golem_activity_menu"
|
||||
action="golem_activity_registration_action"
|
||||
groups="golem_base.group_golem_user"
|
||||
groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
||||
sequence="20" />
|
||||
|
||||
</data>
|
||||
|
@ -59,6 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<menuitem id="golem_activity_registration_analysis_menu"
|
||||
name="Registration Analysis"
|
||||
parent="golem_activity.golem_activity_menu"
|
||||
groups="golem_base.group_golem_user"
|
||||
action="golem_registrations_analysis_action" sequence="50" />
|
||||
|
||||
</data>
|
||||
|
@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<!-- Menus -->
|
||||
<menuitem id="golem_payment_rule_menu" name="Pricing rules"
|
||||
parent="golem_activity.golem_activity_menu_configuration"
|
||||
groups="golem_base.group_golem_manager" sequence="20" />
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" sequence="20" />
|
||||
<menuitem id="golem_payment_rule_qfslice_menu" name="Family Quotients"
|
||||
parent="golem_payment_rule_menu" action="golem_payment_rule_qfslice_action"
|
||||
sequence="10" />
|
||||
|
@ -34,11 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<record id="group_golem_auditor" model="res.groups">
|
||||
<field name="name">GOLEM Auditor</field>
|
||||
<field name="category_id" ref="base.module_category_golem"/>
|
||||
<field name="implied_ids"
|
||||
eval="[(4,
|
||||
[ref('base.group_user'),
|
||||
ref('base.group_partner_manager'),
|
||||
ref('account.group_account_invoice')])]"/>
|
||||
</record>
|
||||
|
||||
<record id="group_golem_manager" model="res.groups">
|
||||
|
@ -214,14 +214,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<!-- Menus -->
|
||||
<menuitem id="golem_family_menu" name="Families"
|
||||
sequence="17" groups="golem_base.group_golem_user"
|
||||
sequence="17"
|
||||
groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
||||
web_icon="golem_family,static/description/icon.png" />
|
||||
<menuitem id="golem_family_menu_list" name="Families"
|
||||
parent="golem_family_menu" action="golem_family_action_list" sequence="1"
|
||||
groups="golem_base.group_golem_user" />
|
||||
groups="golem_base.group_golem_user,golem_base.group_golem_auditor" />
|
||||
<menuitem id="golem_family_role_menu" name="Roles"
|
||||
parent="golem_family_menu" action="golem_family_role_action" sequence="5"
|
||||
groups="golem_base.group_golem_manager" />
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
@ -11,3 +11,5 @@ access_ir_config_parameter_manager,Access IR Config Parameter Manager,base.model
|
||||
access_golem_age_range_manager,Access Golem Age Range Manager,model_golem_member_age_range,golem_base.group_golem_manager,1,1,1,1
|
||||
access_golem_age_range_auditor,Access Golem Age Range Auditor,model_golem_member_age_range,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_golem_age_range_user,Access Golem Age Range User,model_golem_member_age_range,golem_base.group_golem_user,1,0,0,0
|
||||
access_product_template_auditor,Access Product Template Auditor,product.model_product_template,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_res_partner_category_auditor,Access Res Partner Category Auditor,base.model_res_partner_category,golem_base.group_golem_auditor,1,0,0,0
|
||||
|
|
@ -341,16 +341,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<!-- Add new menu items -->
|
||||
<menuitem id="golem_member_user_menu" name="Service users"
|
||||
parent="golem_membership.menu_association" sequence="5"
|
||||
action="golem_member_user_action" groups="golem_base.group_golem_user" />
|
||||
action="golem_member_user_action" groups="golem_base.group_golem_user,golem_base.group_golem_auditor" />
|
||||
<menuitem id="golem_members_menu" name="Subscribers"
|
||||
parent="golem_membership.menu_association" sequence="10"
|
||||
action="golem_member_action" groups="golem_base.group_golem_user" />
|
||||
action="golem_member_action" groups="golem_base.group_golem_user,golem_base.group_golem_auditor" />
|
||||
<menuitem id="golem_member_tool_menu" name="Tools"
|
||||
parent="golem_membership.menu_association" sequence="80"
|
||||
groups="golem_base.group_golem_user" />
|
||||
<menuitem id="res_partner_category_menu" name="Service User Tags"
|
||||
parent="golem_membership.menu_config_association" sequence="15"
|
||||
action="res_partner_category_action"
|
||||
groups="golem_base.group_golem_manager" />
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
||||
</data>
|
||||
</odoo>
|
||||
|
@ -58,6 +58,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<menuitem id="golem_analysis_menu" name="Service User Analysis"
|
||||
parent="golem_membership.menu_association" sequence="50"
|
||||
groups="golem_base.group_golem_user"
|
||||
action="golem_analysis_action"/>
|
||||
|
||||
</data>
|
||||
|
@ -66,7 +66,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
name="Member skills"
|
||||
parent="membership.menu_marketing_config_association"
|
||||
action="golem_member_skill_action"
|
||||
sequence="15" groups="golem_base.group_golem_manager" />
|
||||
sequence="15" groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
@ -26,7 +26,7 @@
|
||||
'license': 'AGPL-3',
|
||||
'application': True,
|
||||
'installable': True,
|
||||
'depends': ['account', 'payment', 'golem_season'],
|
||||
'depends': ['account', 'payment', 'golem_season', 'product', 'base'],
|
||||
'data': ['views/golem_payment_views.xml',
|
||||
'views/golem_account_payment_views.xml',
|
||||
'security/ir.model.access.csv']
|
||||
|
@ -5,3 +5,8 @@ access_golem_payment_schedule_manager,Access GOLEM Payment Schedule Manager,mode
|
||||
access_golem_payment_schedule_day_auditor,Access GOLEM Payment Schedule Day Auditor,model_golem_payment_schedule_day,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_golem_payment_schedule_day_user,Access GOLEM Payment Schedule Day User,model_golem_payment_schedule_day,golem_base.group_golem_user,1,0,0,0
|
||||
access_golem_payment_schedule_day_manager,Access GOLEM Payment Schedule Day Manager,model_golem_payment_schedule_day,golem_base.group_golem_manager,1,1,1,1
|
||||
access_account_invoice_auditor,Access Account Invoice Auditor,account.model_account_invoice,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_account_voucher_auditor,Access Account Voucher Auditor,account_voucher.model_account_voucher,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_res_partner_auditor,Access Res Partner Auditor,base.model_res_partner,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_product_template_auditor,Access Product Template Auditor,product.model_product_template,golem_base.group_golem_auditor,1,0,0,0
|
||||
access_account_payment_auditor,Access Account Payment Auditor,account.model_account_payment,golem_base.group_golem_auditor,1,0,0,0
|
||||
|
|
@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<!-- Menus -->
|
||||
<menuitem id="golem_payment_schedule_menu_list" sequence="5"
|
||||
parent="payment.root_payment_menu" action="golem_payment_schedule_action"
|
||||
groups="golem_base.group_golem_manager" />
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
||||
|
||||
|
||||
</data>
|
||||
|
@ -128,12 +128,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<!-- Menus -->
|
||||
<menuitem id="golem_resource_menu" name="Resources"
|
||||
sequence="55" groups="golem_base.group_golem_user"
|
||||
sequence="55" groups="golem_base.group_golem_user,golem_base.group_golem_auditor"
|
||||
web_icon="golem_resource,static/description/icon.png" />
|
||||
<menuitem id="resource_list_menu" name="Resources" parent="golem_resource_menu"
|
||||
action="golem_resource_action" sequence="10" />
|
||||
<menuitem id="resource_configuration_menu" name="Configuration"
|
||||
parent="golem_resource_menu" groups="golem_base.group_golem_manager"
|
||||
parent="golem_resource_menu" groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
||||
sequence="90" />
|
||||
|
||||
</data>
|
||||
|
@ -81,11 +81,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<!-- Menus -->
|
||||
<menuitem id="golem_season_menu" name="GOLEM Seasons" sequence="100"
|
||||
groups="golem_base.group_golem_manager"
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor"
|
||||
web_icon="golem_season,static/description/icon.png" />
|
||||
<menuitem id="golem_season_menu_list" name="Seasons" sequence="1"
|
||||
parent="golem_season_menu" action="golem_season_action"
|
||||
groups="golem_base.group_golem_manager" />
|
||||
groups="golem_base.group_golem_manager,golem_base.group_golem_auditor" />
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user