mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
[FIX] python call action rights
This commit is contained in:
@@ -15,7 +15,7 @@ class BlogBlog(models.Model):
|
||||
|
||||
def action_view_blog_post(self):
|
||||
self.ensure_one()
|
||||
action = self.env.ref('website_blog.action_blog_post').read()[0]
|
||||
action = self.env.ref('website_blog.action_blog_post').sudo().read()[0]
|
||||
action['domain'] = [('blog_id', '=', self.id)]
|
||||
return action
|
||||
|
||||
|
||||
Reference in New Issue
Block a user