New button disable when switching to form without record selected
In sao when using the switch button from a list to a view (without any current record), the new button is disabled until the view is modified or the current record is changed.
This does not happen in tryton because on Screen.load
it calls Screen.display
with a res_id
. So on list view there is always a current record.
Now why sao disable the new button is because setting a current record in Screen.display
trigger via record_message
the call to set_buttons_sensitive
but before the view is actually updated (because it is done early in display). Such that the view is considered as modified because the widgets are empty but not the record.
I think the best solution is to stop changing the current record on the fly (in both clients) and to disable the switch button when no record is selected.