Browse Source
[FIX] emc_w_taxshelter: Access right issue
[FIX] emc_w_taxshelter: Access right issue
Fix access right to the subscription and the share certificate.pull/1/head
Rémy Taymans
7 years ago
4 changed files with 94 additions and 51 deletions
-
76easy_my_coop_website_taxshelter/controllers/main.py
-
4easy_my_coop_website_taxshelter/security/ir.model.access.csv
-
43easy_my_coop_website_taxshelter/security/tax_shelter_portal_security.xml
-
22easy_my_coop_website_taxshelter/views/easy_my_coop_website_taxshelter_templates.xml
@ -1,4 +0,0 @@ |
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink |
|||
access_tax_shelter_declaration,tax.shelter.declaration.portal,easy_my_coop_taxshelter_report.model_tax_shelter_declaration,base.group_portal,1,0,0,0 |
|||
access_tax_shelter_certificate,tax.shelter.certificate.portal,easy_my_coop_taxshelter_report.model_tax_shelter_certificate,base.group_portal,1,0,0,0 |
|||
access_tax_shelter_certificate_lines,certificate.line.portal,easy_my_coop_taxshelter_report.model_certificate_line,base.group_portal,1,0,0,0 |
@ -1,43 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright 2015-2016 Odoo S.A. |
|||
Copyright 2018 Rémy Taymans <remytaymans@gmail.com> |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<openerp> |
|||
<data noupdate="0"> |
|||
<!-- Tax Shelter Access Rules --> |
|||
<record id="emc_portal_tax_shelter_certificate_rule" model="ir.rule"> |
|||
<field name="name"> |
|||
Easy My Coop Portal Tax Shelter Certificate |
|||
</field> |
|||
<field name="model_id" |
|||
ref="easy_my_coop_taxshelter_report.model_tax_shelter_certificate"/> |
|||
<field name="domain_force"> |
|||
[('partner_id', 'in', [user.commercial_partner_id.id])] |
|||
</field> |
|||
<field name="groups" eval="[(6, 0, [ref('base.group_portal')])]"/> |
|||
</record> |
|||
|
|||
<record id="emc_portal_tax_shelter_certificate_line_rule" model="ir.rule"> |
|||
<field name="name"> |
|||
Easy My Coop Portal Tax Shelter Certificate line |
|||
</field> |
|||
<field name="model_id" |
|||
ref="easy_my_coop_taxshelter_report.model_certificate_line"/> |
|||
<field name="domain_force"> |
|||
[('tax_shelter_certificate.partner_id','in', [user.commercial_partner_id.id])] |
|||
</field> |
|||
<field name="groups" eval="[(6, 0, [ref('base.group_portal')])]"/> |
|||
</record> |
|||
|
|||
<record id="emc_portal_personal_contact" model="ir.rule"> |
|||
<field name="name">Easy My Coop Portal Personal Contacts</field> |
|||
<field name="model_id" ref="base.model_res_partner"/> |
|||
<field name="domain_force"> |
|||
[('id', 'in', [user.commercial_partner_id.id])] |
|||
</field> |
|||
<field name="groups" eval="[(6, 0, [ref('base.group_portal')])]"/> |
|||
</record> |
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue