Skip to content

Commit

Permalink
[FIX] portal_event_tickets: исправил невозможность у портальных польз…
Browse files Browse the repository at this point in the history
…ователей иметь доступ к своим билетам
  • Loading branch information
em230418 committed Dec 24, 2024
1 parent 220328d commit 49b0f29
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion portal_event_tickets/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"summary": """Allows to customers see their tickets for events at the Portal""",
"category": "Marketing",
"images": ["images/banner.jpg"],
"version": "17.0.1.0.1",
"version": "17.0.1.0.2",
"author": "IT-Projects LLC",
"support": "[email protected]",
"website": "https://github.com/it-projects-llc/website-addons",
Expand All @@ -15,6 +15,8 @@
"website_sale_refund",
],
"data": [
"security/ir.model.access.csv",
"security/event_security.xml",
"views/portal_templates.xml",
"views/event_registration.xml",
"views/event_event.xml",
Expand Down
12 changes: 12 additions & 0 deletions portal_event_tickets/security/event_security.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="event_registration_portal" model="ir.rule">
<field name="name">Event/Registration: Portal</field>
<field name="model_id" ref="event.model_event_registration" />
<field name="groups" eval="[(4, ref('base.group_portal'))]" />
<field
name="domain_force"
>['|', ('attendee_partner_id', '=', user.partner_id.id), ('partner_id', '=', user.partner_id.id)]
</field>
</record>
</odoo>
2 changes: 2 additions & 0 deletions portal_event_tickets/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_event_registration_portal,access_event_registration_portal,event.model_event_registration,base.group_portal,1,0,0,0

0 comments on commit 49b0f29

Please sign in to comment.