How to Inherit And Add Value To Particular Position In Odoo Selection Field
CelineGeorge1
951 views
8 slides
Aug 13, 2024
Slide 1 of 8
1
2
3
4
5
6
7
8
About This Presentation
This slide will show that how to inherit and add value to particular position in selection field in Odoo 17.
Size: 308.96 KB
Language: en
Added: Aug 13, 2024
Slides: 8 pages
Slide Content
How to Inherit And Add Value To a Particular Position of Selection Field in Odoo 17 Enterprise
Introduction Enterpr ise This slide will show that how to inherit and add value to particular position in selection field in Odoo 17. Let’s see how we can manage this.
Enterprise Here we have a module hospital management. There is only two states on the model patient vaccination. Let’s add a new state before the Not Vaccinated state.
Enterprise Let’s open the pycharm and created a py file. Inherit the model patient vaccination. By using the attribute selection_add we can add new values to the existing selection field .
Enterprise If we need to specify the position, add the existing selection value after adding the new value. So the new value is added before to the existing field value. Run the pycharm and upgrade the module.
Enterprise Open the patient vaccination and there we can see the new state Partially Vaccinated were added before the state Not vaccinated .
Enterprise This is how we can i nherit and add value to particular position of Selection Field in Odoo 17 .
For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com