Hello, it is possible to know in which view a data model is open.
I need to put a default value in a field depending on which view the data is displayed. In a model with multiple views. Each view will have a domain to filter the data by that field.
Not really but you can set a value in the context of the action that opens the view. This context will be used to call the default method of the field.
But if you have domain constraint with = operator in such way that only one value is possible, the client will set the value automatically.