Hi,
I have a field, say "source_ids" in a form. These items (the sources) have a type, identified with a many2one relation as the type_id field.
In my view, I want to set the default type to an XML_ID (and not the integer ID of the record).
So for instance, my type "FOO" has ID 10, and XML_ID : "ref_module_id.source_type_id".
When I do that, I have an error (it expects an integer) :
<field name="source_id" context="{'default_type_id':'reference_module_id.source_type_id'}"/>
Can anybody help ? I'd really like to avoid setting the numeric value in my view XML...
Thanks