Comment 2 for bug 788139

Revision history for this message
Ferdinand (office-chricar) wrote : Re: account analytic line needs multicompany access rule

here is a statement which lists all models without company access domain.

IMHO all models accessible from menu must have such a rule as default.

select m.model,m.name from ir_model m
 where id not in (select model_id from ir_rule i where domain_force like '%company_id%')
   and id in (select model_id from ir_model_fields where name = 'company_id')
order by 1;