[IMP] Removing Add Columns Widget: duplicate is better as there are lots of different columns possible

bzr revid: fp@tinyerp.com-20140126133256-eab0jfyzn2zbeuja
This commit is contained in:
Fabien Pinckaers 2014-01-26 14:32:56 +01:00
parent beb0c7d159
commit 06fdb79989
2 changed files with 4 additions and 18 deletions

View File

@ -372,22 +372,6 @@
</div>
</div>
<div data-snippet-id='colmd' data-selector-vertical-children='.row'>
<div class="oe_snippet_thumbnail">
<img class="oe_snippet_thumbnail_img" src="/website/static/src/img/blocks/block_column.png"/>
<span class="oe_snippet_thumbnail_title">Add Column</span>
</div>
<div class="oe_snippet_body col-md-4">
<img class="img img-rounded img-responsive" src="/website/static/src/img/china_thumb.jpg"/>
<h4 class="mt16">Feature</h4>
<p>
Delete the above image or replace it with a picture
that illustrates your message. Click on the picture to
change it's <em>rounded corner</em> style.
</p>
</div>
</div>
</div>
<div id="snippet_feature" class="tab-pane fade">

View File

@ -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',