Is it possible to populate the values of a selection field from the data.xml file? I have been going through the ~data.xml files for various addons looking for an example of this and have found none. Or maybe I have and it wasn't obvious to me. Are there any good examples of this if it is possible?
I just discovered this in crm_lead_data.xml...
<record model="crm.case.section" id="section_sales_department"> <field name="stage_ids" eval="[ (4, ref('stage_lead1')), (4, ref('stage_lead2')), (4, ref('stage_lead3')), (4, ref('stage_lead4')), (4, ref('stage_lead5')), (4, ref('stage_lead6')), (4, ref('stage_lead7')), (4, ref('stage_lead8'))]"/> </record>
I am trying to understand how the module uses it but it looks like it might be what I am trying to do ....maybe.