Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to update the sequence of number and checks the value encoded on the wizard in OpenERP(Odoo)?

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 397
    Comment on it

    To update sequence to number and checks from the value encoded in the wizard, first we have to go in .py file (Python file) After that we have to decide where we want to update the sequence to number and then write python code to that field from start to end. Use below .py code in python file:

     dummy, sequence_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account_check_writing', 'sequence_check_number')
            increment = ir_sequence_obj.read(cr, uid, [sequence_id], ['number_increment'])[0]['number_increment']
            new_value = self.browse(cr, uid, ids[0], context=context).check_number
            ir_sequence_obj.write(cr, uid, sequence_id, {'number_next': new_value})
    

 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: