[7.0] Multi-company : Document type: Companies, Operation: read

Bug #1212429 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Bare with me if it is a duplicate of lp:1087424

I am using latest revision of version 7.0 and the patch of this branch :
lp:~openerp-dev/openobject-server/7.0-opw-591308-jam

I created the following company structure :

Company A
 + Company B

User B belongs to Company B and has Warehouse Manager rights.

User B creates a product B and print its label :

Access denied - Document type: Companies, Operation: read

After debugging, I discover that OpenERP is trying to access the Company A to print the label... I changed the multi company rule for company to :

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

and now User B can print the label.

User B go to Warehouse > Configuration > Orderpoints and clicks on Create :

Access denied - Document type: Warehouse, Operation: read

I disabled the multi-company rule on warehouse and now I get :

Access denied - Document type: Location, Operation: read

Related branches

summary: - Multi-company : Document type: Companies, Operation: read
+ [7.0] Multi-company : Document type: Companies, Operation: read
Changed in openobject-server:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-server:
status: New → Fix Committed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

For the record, the issue with the Access Error with the parent company when printing the labels should be fixed by the following commit in the 7.0 server branch: revno 5136 rev-id: <email address hidden>.
The second issue should be fixed by the MP linked to this bug report.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Saved our life after a marathon fight! Thanks ODO!

Changed in openobject-server:
status: Fix Committed → Fix Released
milestone: none → 7.0
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

The merged prop was integrated into 7.0.
Thanks for the report.

revno: 10007 [merge]
revision-id: <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.