Hello!
I am new to odoo development and I have been searching for how to change the calendar.event field name from a char to selection,
note: I have inherited the model in a custom_addon directory.
Thank you,
Best regards,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello!
I am new to odoo development and I have been searching for how to change the calendar.event field name from a char to selection,
note: I have inherited the model in a custom_addon directory.
Thank you,
Best regards,
Hi,
First you have to check if this field used in code or in another model as a related field before change the type because this will cause many issue for you. So I prefer to create a new field and use it for your own purpose.
anyhow, To change the field type, you can do it as below:
field_1 = fields.Selection([('select1','select1'), ('select2,'select2') , ('select3','select3') ], string="Selection Field Name")
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.