Wiki Page should start keeping History from the creating of page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Mantavya Gajjar (Open ERP) |
Bug Description
Wiki Page should start keeping History from the creating of page and not from the first changes of the pages
* if this is the case we will not be able to see the difference form the first page of the wiki and not from the first changed
it can be fixed by the following code
=== modified file 'wiki/wiki.py'
--- wiki/wiki.py 2009-02-04 13:12:10 +0000
+++ wiki/wiki.py 2009-03-19 06:16:39 +0000
@@ -105,6 +105,20 @@
def copy_data(self, cr, uid, id, default=None, context=None):
return super(Wiki, self).copy_data(cr, uid, id, {'wiki_id':False}, context)
+ def create(self, cr, uid, vals, context=None):
+ id = super(Wiki,
+ history = self.pool.
+ if vals.get(
+ res = {
+ 'minor_
+ 'text_area'
+ 'write_uid':uid,
+ 'wiki_id' : id,
+ 'summary'
+ }
+ history.create(cr, uid, res)
+ return id
+
def write(self, cr, uid, ids, vals, context=None):
result = super(Wiki,
history = self.pool.
already fixed in trunk