Odoo 10/11 CE. This is classical. For example you chose first the brand 'f1' of a car, and next, depending of the brand you want to chose the model 'f2' in the brand.
Using @api.onchange('f1') returning a dictionary which defines the domain of f2 works well when you create a record.
It does not work when you use "edit", because the onchange event is not fired.
What is a solution to make it work in Edit mode?