Wrong selection of default view between inherit and priority
inherit must be considered differently if it refers to a view of the same model or to an other model.
The query at [1] must do a left join to the inherit view to test the inherited model.
[1] http://hg.tryton.org/trytond/file/36a40b6583a6/trytond/model/modelview.py#l135