Browse Source

Merge branch '12.0-emc-security' into 12.0

pull/46/head
robin.keunen 5 years ago
parent
commit
48d038c3b7
  1. 2
      easy_my_coop/demo/coop.xml
  2. 27
      easy_my_coop/security/ir.model.access.csv
  3. 2
      easy_my_coop/views/menus.xml

2
easy_my_coop/demo/coop.xml

@ -69,7 +69,7 @@
<field name="country_id" ref="base.be"/>
</record>
<record id="account_cooperator_demo" model="account.account">
<record id="easy_my_coop.account_cooperator_demo" model="account.account">
<field name="code">416101</field>
<field name="name">Cooperators</field>
<field name="user_type_id" ref="account.data_account_type_receivable"/>

27
easy_my_coop/security/ir.model.access.csv

@ -1,14 +1,15 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_product_product_user,product.product,product.model_product_product,group_easy_my_coop_user,1,1,0,0
access_product_product_manager,product.product,product.model_product_product,group_easy_my_coop_manager,1,1,1,1
access_product_template_user,product.template,product.model_product_template,group_easy_my_coop_user,1,1,0,0
access_product_template_manager,product.template,product.model_product_template,group_easy_my_coop_manager,1,1,1,1
access_subscription_request_employee,access.subscription.request user,model_subscription_request,base.group_user,1,0,0,0
access_subscription_request_m,subscription.request,model_subscription_request,group_easy_my_coop_user,1,1,1,1
access_share_line_employee,share.line,model_share_line,base.group_user,1,0,0,0
access_share_line_manager,share.line,model_share_line,group_easy_my_coop_user,1,1,1,0
access_res_partner_emc_user,res.partner,base.model_res_partner,group_easy_my_coop_user,1,1,1,0
access_account_invoice,account.invoice,model_account_invoice,group_easy_my_coop_user,1,1,1,0
access_subscription_register,subscription_register,model_subscription_register,group_easy_my_coop_user,1,1,1,0
access_operation_request,operation.request,model_operation_request,group_easy_my_coop_user,1,1,1,0
access_operation_request_manager,operation.request,model_operation_request,group_easy_my_coop_manager,1,1,1,1
access_product_product_easy_my_coop_user,access_product_product_easy_my_coop_user,product.model_product_product,group_easy_my_coop_user,1,1,0,0
access_product_product_easy_my_coop_manager,access_product_product_easy_my_coop_manager,product.model_product_product,group_easy_my_coop_manager,1,1,1,1
access_product_template_easy_my_coop_user,access_product_template_easy_my_coop_user,product.model_product_template,group_easy_my_coop_user,1,1,0,0
access_product_template_easy_my_coop_manager,access_product_template_easy_my_coop_manager,product.model_product_template,group_easy_my_coop_manager,1,1,1,1
access_subscription_request_user,access_subscription_request_user.subscription,model_subscription_request,base.group_user,1,0,0,0
access_subscription_request_easy_my_coop_user,access_subscription_request_easy_my_coop_user,model_subscription_request,group_easy_my_coop_user,1,1,1,0
access_subscription_request_easy_my_coop_manager,access_subscription_request_easy_my_coop_manager,model_subscription_request,group_easy_my_coop_manager,1,1,1,1
access_share_line_user,access_share_line_user,model_share_line,base.group_user,1,0,0,0
access_share_line_easy_my_coop_user,access_share_line_easy_my_coop_user,model_share_line,group_easy_my_coop_user,1,1,1,0
access_res_partner_easy_my_coop_user,access_res_partner_easy_my_coop_user,base.model_res_partner,group_easy_my_coop_user,1,1,1,0
access_account_invoice_easy_my_coop_user,access_account_invoice_easy_my_coop_user,model_account_invoice,group_easy_my_coop_user,1,1,1,0
access_subscription_register_easy_my_coop_user,access_subscription_register_easy_my_coop_user,model_subscription_register,group_easy_my_coop_user,1,1,1,0
access_operation_request_easy_my_coop_user,access_operation_request_easy_my_coop_user,model_operation_request,group_easy_my_coop_user,1,1,1,0
access_operation_request_easy_my_coop_manager,access_operation_request_easy_my_coop_manager,model_operation_request,group_easy_my_coop_manager,1,1,1,1

2
easy_my_coop/views/menus.xml

@ -12,7 +12,7 @@
<menuitem name="Cooperator Candidates" id="menu_easy_my_coop_cooperator_candidate" action="action_partner_cooperator_candidate_form" parent="menu_easy_my_coop_main_subscription" sequence="140" />
<menuitem name="Subscription Register" id="menu_easy_my_coop_subscription_register" action="subscription_register_action" parent="menu_easy_my_coop_main_subscription" sequence="150" />
<menuitem name="Operation request" id="menu_easy_my_coop_operation_request" action="operation_request_action" parent="menu_easy_my_coop_main_subscription" groups="easy_my_coop.group_easy_my_coop_user" sequence="160" />
<menuitem name="Share lines" id="menu_easy_my_coop_share_line" action="share_line_action" parent="menu_easy_my_coop_main_subscription" groups="group_easy_my_coop_manager" sequence="170" />
<menuitem name="Share Lines" id="menu_easy_my_coop_share_line" action="share_line_action" parent="menu_easy_my_coop_main_subscription" groups="base.group_system" sequence="170" />
<menuitem name="Contacts" id="menu_easy_my_coop_main_coop" parent="menu_main_easy_my_coop" sequence="20"/>
<menuitem name="Cooperators" id="menu_easy_my_coop_cooperator" action="action_partner_cooperator_form" parent="menu_easy_my_coop_main_coop" sequence="210" />

Loading…
Cancel
Save