Missing multi-company access rules

Bug #788139 reported by Ferdinand
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

Bug Description

Analytic Journal Items must be restricted using

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

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :

same for "Analytic Journal"

Revision history for this message
Ferdinand (office-chricar) wrote :

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;

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Meera Trambadia (OpenERP) (mtr-openerp) wrote :

Hello Ferdinand,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-788139-mtr branch.
Revision ID: mtr@mtr-20110608072935-blig6ejq1oa36un5
Revision no: 4771

Thank you for the query to track the models without multi-company access rules.

I have assigned the rules for the account_followup, account_analytic_default, analytic ,hr, hr_evaluation, hr_expense,hr_recruitment modules.

@ Community team: In order to assign the rules to all the models,it should be assigned to the respective addons team.

Thanks,
mtr

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Changed in openobject-addons:
status: Confirmed → In Progress
summary: - account analytic line needs multicompany access rule
+ stock modules needs multicompany access rule
Revision history for this message
Rohan Nayani(Open ERP) (ron-tinyerp) wrote : Re: stock modules needs multicompany access rule

Hello,

Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-788139-ron
Revision ID: <email address hidden>
Revision num:4772.

It will be available in trunk soon.
Thank you for the query

I have assigned the rules for the product,mrp,stock,stock_location,stock_planning modules.

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
summary: - stock modules needs multicompany access rule
+ Missing multi-company access rules
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
qdp (OpenERP) (qdp) wrote :

merged at revision 5062 revid:<email address hidden> and 5063 revid:<email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.