[FIX] website_blog: ids of create_history method may be an integer
This commit is contained in:
parent
1684206122
commit
753a4d787d
|
@ -191,6 +191,8 @@ class BlogPost(osv.Model):
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def create_history(self, cr, uid, ids, vals, context=None):
|
def create_history(self, cr, uid, ids, vals, context=None):
|
||||||
|
if isinstance(ids, (int, long)):
|
||||||
|
ids = [ids]
|
||||||
for i in ids:
|
for i in ids:
|
||||||
history = self.pool.get('blog.post.history')
|
history = self.pool.get('blog.post.history')
|
||||||
if vals.get('content'):
|
if vals.get('content'):
|
||||||
|
|
Loading…
Reference in New Issue