120
120
# if the journal can be linked to a register, the register is also created
121
121
if vals['type'] in ('cash','bank','cheque'):
122
125
self.pool.get('account.bank.statement') \
123
126
.create(cr, uid, {'journal_id': journal_obj,
124
127
'name': "REG1" + vals['code'],