Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to create a new record in board.board object in opererp

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 181
    Comment on it

    In openerp first install board module and inherit object and views in board module and check the current users id values and dictionary values for every fields and then create new record in board module in openerp.
    you can use this function as given below.

    def create(self, cr, user, vals, context=None):
    
            if not 'name' in vals:
                return False
            id = super(board_board, self).create(cr, user, vals, context=context)
            view_id = self.pool.get('ir.ui.view').create(cr, user, {
                'name': vals['name'],
                'model': 'board.board',
                'priority': 16,
                'type': 'form',
                'arch': self.create_view(cr, user, id, context=context),
            })
    
            super(board_board, self).write(cr, user, [id], {'view_id': view_id}, context)
    
            return id
    

 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: