From 06fdb79989d0030cc2ae880f2f82fb94e08c6366 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 26 Jan 2014 14:32:56 +0100 Subject: [PATCH] [IMP] Removing Add Columns Widget: duplicate is better as there are lots of different columns possible bzr revid: fp@tinyerp.com-20140126133256-eab0jfyzn2zbeuja --- addons/website/views/snippets.xml | 16 ---------------- addons/website_blog/models/website_blog.py | 6 ++++-- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 7b80c7c7042..6802d3d6614 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -372,22 +372,6 @@ -
-
- - Add Column -
-
- -

Feature

-

- Delete the above image or replace it with a picture - that illustrates your message. Click on the picture to - change it's rounded corner style. -

-
-
-
diff --git a/addons/website_blog/models/website_blog.py b/addons/website_blog/models/website_blog.py index f11069f7612..ebd81f07149 100644 --- a/addons/website_blog/models/website_blog.py +++ b/addons/website_blog/models/website_blog.py @@ -91,7 +91,9 @@ class BlogPost(osv.Model): return res _columns = { - 'name': fields.char('Title', required=True), + 'name': fields.char('Title', required=True, translate=True), + 'subtitle': fields.char('Subtitle', translate=True), + 'content_image': fields.binary('Background Image'), 'blog_id': fields.many2one( 'blog.blog', 'Blog', required=True, ondelete='cascade', @@ -99,7 +101,7 @@ class BlogPost(osv.Model): 'tag_ids': fields.many2many( 'blog.tag', string='Tags', ), - 'content': fields.html('Content'), + 'content': fields.html('Content', translate=True), 'shortened_content': fields.function( get_shortened_content, type='html',