← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 788139] 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;

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/788139

Title:
  account analytic line needs multicompany access rule

Status in OpenERP Modules (addons):
  New

Bug description:
  Analytic Journal Items must be restricted using

  ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]


References