Before this commit, the user was able to change the UoM type from "Reference Unit" to "Bigger" or "Smaller" and let an UoM category with no reference. So, to force UoM category to have at least one Reference Unit, the user can't change the reference unit if there is no other unit set as reference. task-2581265 Part-of: odoo/odoo#74695