I want to strip the input data to remove leading and trailing spaces.
I tried this, but didn't work...
class Test(models.Model):
_name = 'test.mymodel'
device_id = fields.Char(string="ID", required=True).strip()
and this too didn't work...
class Test(models.Model):
_name = 'test.mymodel'
device_id_strp = fields.Char(string="ID", required=True)
device_id = device_id_strp.strip()
please help me with a solution...