Hi,
I am pretty new creating my custom modules. What I want to do is to create a 'custom_id' for each user based on the input of other of the fields.
So I have a readonly field like this
'IdNumber': fields.char('Id Number', readonly=True),
And then I have
'CountryID': fields.char('Country ID', required=True),
'father_name': fields.char('Last Name', required=True),
What I want to do is to generate the IdNumber when the user inputs the data for CountryId and father_name. For example CountryID+father_name
I simply need a tip in the right direction and I will try to figure it out from there. I guess I have to use a fields.function for my IdNumber but I would like some clarification.
Thanks!
In v8 ,you can use compute method and v7 you can use fields.function