Selection fields in editable trees don't have their options updated when the domain changes
The setup is a Selection
field displayed as a column of a One2Many
field used with editable=1
. The O2M field has a domain that change the options available in the selection according to the value of other fields in the form.
The issue is that the options available are not modified once the edition of the Selection
field is started and the user clicks on another field and change its value to update the options. They will still be the older set of options.
There are two ways of fixing this, one is to ensure that the edition of the Selection
is stopped but it's related to a GTK issue that I raised on their discourse. I found a solution but it only works on non-X11 backends.
Maybe another way to fix this would be to update the liststore used for the editable combobox instead of recreating and resetting the linked model every time. But it's code that reside in the PopdownMixin
and haven't yet tried this solution.