How to Add a New Option in Existing Selection Field in Odoo 16 | Odoo 16 Development Tutorials

Опубликовано: 27 Март 2023
на канале: Cybrosys Technologies
2,446
11

In Odoo 16, you can add a new option to an existing selection field by modifying the field's definition. A selection field is a field that allows the user to choose from a list of predefined options.
#odoodevelopment #odoo16

1.To add a new option to an existing selection field, follow these steps,

2.Go to the model that contains the selection field you want to modify.

3.Find the field in the model's fields definition.

Add the new option to the field's selection list.
To add a new option, you simply need to add a new tuple to the "selection" list. The first element of the tuple is the option's value, and the second element is the option's label. #odootutorials

Connect With Us:
—————————————
➡️ Website: https://www.cybrosys.com/
➡️ Email: [email protected]
➡️ Twitter:   / cybrosys  
➡️ LinkedIn:   / cybrosys  
➡️ Facebook:   / cybrosystechnologies  
➡️ Instagram:   / cybrosystech  
➡️ Pinterest:   / cybrosys  


Смотрите видео How to Add a New Option in Existing Selection Field in Odoo 16 | Odoo 16 Development Tutorials онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Cybrosys Technologies 27 Март 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,446 раз и оно понравилось 11 посетителям.