Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to create view in board.board object in openerp

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 752
    Comment on it

    In openerp first install board module and inherit object in your own module and write this function name createview and this function will check the user id and list of the board id in board.board object in openerp.
    You can use this as given below.

    def createview(self, cr, uid, ids, context=None):
    
            board = self.pool.get('board.board').browse(cr, uid, ids, context=context)
            left = []
            right = []
            #start Loop
            for line in board.line_ids:
                linestr = '<action string="%s" name="%d"' % (line.name, line.action_id.id)
                linestr += '/>'
                if line.position == 'left':
                    left.append(linestr)
                else:
                    right.append(linestr)
            #End Loop
            arch = """<?xml version="1.0"?>
                <form string="My Board">
                <board style="1-1">
                    <column>
                        %s
                    </column>
                    <column>
                        %s
                    </column>
                </board>
                </form>""" % ('\n'.join(left), '\n'.join(right))
    
            return arch
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
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: