Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • How to create Opens Wiki Page of Group in OpenERP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 291
    Comment on it

    In  OpenERP to create opens wiki page first you have to create the current row and than the current user’s ID for security checks. user ID find List of open wiki group’s IDs and also maps the dictionary of open wiki window on give group id and the last thing is it provides wiki page if not then it will not show any wiki page and shows the message page not found.

    use this function show in  given below

    def wikipage(self, cr, uid, ids, context=None):
            if type(ids) in (int,long,):
                ids = [ids]
            group_id = False
            if ids:
                group_id = ids[0]
            if not group_id:
                return {}
            value = {
                'name': 'Wiki Page',
                'view_type': 'form',
                'view_mode': 'form,tree',
                'res_model': '',
                'view_id': False,
                'type': 'ir.actions.act_window',
                'nodestroy': True,
            group = self.browse(cr, uid, group_id, context=context)
            value['domain'] = "[('group_id','=',%d)]" % (
            if group.method == 'page':
                value['res_id'] =
            elif group.method == 'list':
                value['view_type'] = 'form'
                value['view_mode'] = 'tree,form'
            elif group.method == 'tree':
                view_id = self.pool.get('ir.ui.view').search(cr, uid, [('name', '=', '')])
                value['view_id'] = view_id
                value['domain'] = [('group_id', '=',, ('parent_id', '=', False)]
                value['view_type'] = 'tree'
            return value


 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: