Antonio Espinosa
8 years ago
committed by
Jairo Llopis
6 changed files with 68 additions and 14 deletions
-
1mail_tracking/__manifest__.py
-
15mail_tracking/models/mail_tracking_email.py
-
9mail_tracking/models/res_partner.py
-
2mail_tracking/security/ir.model.access.csv
-
16mail_tracking/security/mail_tracking_email_security.xml
-
25mail_tracking/tests/test_mail_tracking.py
@ -1,4 +1,6 @@ |
|||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
|||
"access_mail_tracking_email_group_public","mail_tracking_email group_public","model_mail_tracking_email","base.group_public",1,0,0,0 |
|||
"access_mail_tracking_email_group_portal","mail_tracking_email group_portal","model_mail_tracking_email","base.group_portal",1,0,0,0 |
|||
"access_mail_tracking_email_group_user","mail_tracking_email group_user","model_mail_tracking_email","base.group_user",1,0,0,0 |
|||
"access_mail_tracking_event_group_user","mail_tracking_event group_user","model_mail_tracking_event","base.group_user",1,0,0,0 |
|||
"access_mail_tracking_email_group_system","mail_tracking_email group_system","model_mail_tracking_email","base.group_system",1,1,1,1 |
|||
|
@ -0,0 +1,16 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- © 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com> |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|||
<odoo> |
|||
|
|||
<record model="ir.rule" id="mail_tracking_email_portal_public_rule"> |
|||
<field name="name">mail_tracking_email: portal/public: read access on my email trackings</field> |
|||
<field name="model_id" ref="model_mail_tracking_email"/> |
|||
<field name="domain_force">[('partner_id', '=', user.partner_id.id)]</field> |
|||
<field name="groups" eval="[(4, ref('base.group_portal')), (4, ref('base.group_public'))]"/> |
|||
<field name="perm_create" eval="False"/> |
|||
<field name="perm_unlink" eval="False"/> |
|||
<field name="perm_write" eval="False"/> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue