mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix misc
This commit is contained in:
17
app_website_blog_editor/models/blog_post.py
Normal file
17
app_website_blog_editor/models/blog_post.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import api, models, fields, _
|
||||
from odoo.tools.safe_eval import safe_eval
|
||||
|
||||
|
||||
class BlogPost(models.Model):
|
||||
_inherit = 'blog.post'
|
||||
|
||||
def action_post_debug_view(self):
|
||||
self.ensure_one()
|
||||
action = self.env.ref('website_blog.action_blog_post').read()[0]
|
||||
|
||||
action['views'] = [(self.env.ref('website_blog.view_blog_post_form').id, 'form')]
|
||||
action['res_id'] = self.id
|
||||
return action
|
||||
|
||||
Reference in New Issue
Block a user