How to handle reading and writing to read-only fields
I'm creating a
reference field, containing an auto-generated sequence generated by a
_defaults lambda which gets the sequence value.
The problem is that when the view is loaded, the sequence is set in the field. But because the field is readonly, when the object is saved, the sequence is re-generated by
create() because the field value was not in
Is it possible to say "do not load the default value in the view" ? This way, only the call to
create() would grab the sequence value.