Active toggle button visibe on model without active field.
The display of the active button in screen container has been set in the property domain_parser
by e7059be59f9e and c3cba41333ad.
But the domain parser may not be called if it is cached or if the context screen is not valid (in search_filter
). This leads to the active button being displayed for model without an active field defined. So the user can click on it which trigger a KeyError
in ModelStorage.check_domain
.
This can be reproduced by opening "Stock Moves by Warehouse" on a setup with 2 warehouses defined (so no default warehouse is set such that the context screen is not valid).