You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
415 B

# -*- 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