Hi,
I have a field "X" for which i have written a def to make it to all caps and then save it to db, but the problem is that it doesn't work when i import a file. The function is as below
@api.onchange('name')
def set_account_group_caps(self):
if self.name:
self.name = str(self.name).upper()
Does anyone know how to achieve this even for when importing a file?