[FIX] website_event: add missing ir.model.access
There isn't `ir.model.access` on `event.event.ticket` for public and portal users, but there is already the `ir.rule` to check the access. In master, It causes an issue now, since https://github.com/odoo/odoo/pull/82896, the `description` field of `event.event.ticket` isn't prefetch anymore by the sudoed `event_registrations_open` compute (that fill the cache with ticket data in sudo). It crashes single app build: https://runbot.odoo.com/runbot/build/12473674 We prefer to backport it in stable, there are maybe some corners where it will raise an Exception and for sake of correctness. closes odoo/odoo#84072 X-original-commit: d4f1be276d31215158b164f2f282afa8fa75f2b9 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_event_event,event.event,model_event_event,,1,0,0,0
|
||||
access_event_event_ticket,event.event.ticket,event.model_event_event_ticket,,1,0,0,0
|
||||
access_event_type,event.type,event.model_event_type,,0,0,0,0
|
||||
access_event_tag_category,event.tag.category,event.model_event_tag_category,,1,0,0,0
|
||||
access_event_tag,event.tag,event.model_event_tag,,1,0,0,0
|
||||
|
||||
|
@@ -14,7 +14,6 @@ Sell event tickets through eCommerce app.
|
||||
'views/event_event_views.xml',
|
||||
'views/website_event_templates.xml',
|
||||
'views/website_sale_templates.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'security/website_event_sale_security.xml',
|
||||
],
|
||||
'auto_install': True,
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_event_event_ticket,event.event.ticket,event.model_event_event_ticket,,1,0,0,0
|
||||
|
Reference in New Issue
Block a user