| # -*- coding: utf-8 -*- | |
| 
 | |
| import re | |
| 
 | |
| from odoo import api, fields, models, _ | |
| from odoo.exceptions import UserError, ValidationError | |
| 
 | |
| 
 | |
| 
 | |
| class ResPartnerBank(models.Model): | |
|     _inherit = "res.partner.bank" | |
| 
 | |
|     @api.model | |
|     def create(self, values): | |
|         values['acc_type']='iban' | |
|         res = super(ResPartnerBank, self).create(values) | |
|          | |
|         # here you can do accordingly | |
|         return res | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|      |