bugfixing to the group tree action for opening related list of pages
action change form wizard to ir.actions.act_window bzr revid: mga@tinyerp.com-20081124062651-l0crpajm6kqfx55w
This commit is contained in:
parent
d4fbf8cce8
commit
15d51bf5e9
|
@ -86,16 +86,6 @@ class Wiki(osv.osv):
|
|||
}
|
||||
}
|
||||
|
||||
def read(self, cr, uid, cids, fields=None, context=None, load='_classic_read'):
|
||||
ids = []
|
||||
for id in cids:
|
||||
if type(id) == type(1):
|
||||
ids.append(id)
|
||||
elif type(id) == type(u''):
|
||||
ids.append(10)
|
||||
result = super(Wiki, self).read(cr, uid, ids, fields, None, load='_classic_read')
|
||||
return result
|
||||
|
||||
def write(self, cr, uid, ids, vals, context=None):
|
||||
if vals.get('text_area'):
|
||||
vals['history_id']=[(0,0,{
|
||||
|
|
|
@ -174,11 +174,11 @@
|
|||
res_model="wiki.wiki"
|
||||
src_model="wiki.groups"/>
|
||||
|
||||
<record id="ir_open_journal_period" model="ir.values">
|
||||
<record id="ir_open_wiki_pages" model="ir.values">
|
||||
<field name="key2">tree_but_open</field>
|
||||
<field name="model">wiki.groups</field>
|
||||
<field name="name">Wiki Pages</field>
|
||||
<field eval="'ir.actions.wizard,%d'%act_wiki_group_open" name="value"/>
|
||||
<field eval="'ir.actions.act_window,%d'%act_wiki_group_open" name="value"/>
|
||||
<field eval="True" name="object"/>
|
||||
</record>
|
||||
|
||||
|
|
Loading…
Reference in New Issue