Browse Source

[FIX] ir rules

pull/33/head
robin.keunen 5 years ago
parent
commit
95be72eb6b
  1. 3
      easy_my_coop/security/ir.model.access.csv
  2. 1
      easy_my_coop/tests/test_emc.py
  3. 3
      easy_my_coop_loan/views/partner_view.xml

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

@ -4,8 +4,7 @@ access_product_product_manager,product.product,product.model_product_product,gro
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_manager,subscription.request,model_subscription_request,group_easy_my_coop_manager,1,1,1,1
access_subscription_request,subscription.request,model_subscription_request,group_easy_my_coop_user,1,1,1,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

1
easy_my_coop/tests/test_emc.py

@ -28,6 +28,7 @@ class EMCCase(EMCBaseCase):
def test_validate_subscription_request(self):
self.as_emc_user()
# todo missing structure fails the rules?
self.request.validate_subscription_request()
self.assertEquals(self.request.state, "done")

3
easy_my_coop_loan/views/partner_view.xml

@ -15,7 +15,8 @@
<field name="is_loaner"/>
</group>
<field name="loan_line_ids">
<tree create="false" delete="false" edit="false">
<tree>
<!-- <tree create="false" delete="false" edit="false">-->
<field name="loan_issue_id"/>
<field name="date"/>
<field name="quantity"/>

Loading…
Cancel
Save