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;
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;