title: Variable value passing eeror in openERP
body: <p>I have a model named <code>hr_bank_account</code> (<code>osv.osv</code>) and it looks like this: </p>
  
  <pre><code> class hr_bank_account(osv.osv):
  
      def create(self, cr, uid, values, context=None):
          vals = {}
          acc_no = 'account_no'
          bank = self.pool.get('hr.bank.register').browse(cr, uid, values['bank_id']).name
          branch = self.pool.get('hr.branch.registration').browse(cr, uid, values['branch_id']).name
         # name = str(bank) + '/' + str(branch) + '/' + str(values['account_no'])
         # get 'account_no' and replace it with acc_no bellow. 
          name = str(bank) + '/' + str(branch) + '/' + acc_no
          values.update({'name': name})
          return super(hr_bank_account, self).create(cr, uid, values, context=context)
  
  
      _name = "hr.bank.account"
      _description = "hr_bank_account"
      _columns = {
                  'name': fields.char('Account No', size=256),
                  'bank_id': fields.many2one('hr.bank.register', 'Bank Name',),
                  'branch_id': fields.many2one('hr.branch.registration','Branch Name',domain="[('bank_id','=',bank_id)]"),
                  'account_no': fields.integer('account_no', size=64, required=True),
      }
  
  hr_bank_account()
  </code></pre>
  
  <p>I have a table named <code>hr_employee</code> and it has the following relationship:</p>
  
  <pre><code>'bank_account_id': fields.one2many('hr.bank.account', 'account_no', 'Bank account'),
  </code></pre>
  
  <p>My issue is that when it is given a bank account number, it passes wrong values like below:</p>
  
  <p>The number I give as the bank account number = 123456</p>
  
  <p>The number which goes to the database is = account_no</p>
  
  <p>Please help me to fixed this.</p>