Access Error when printing Aged Partner Balance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP's Framework R&D |
Bug Description
To replicate: (using version 7.0-20130313-
Note: these steps must be carried out exactly in this order, or you may not get the exact ids on particular object which trigger the error
- Create a new DB
- Install "Accounting and Finance" app. When finished do NOT install default COA in "Configure Accounting Data". Instead click 'x' in top right of page
- Go to Settings > Users, select 'Administrator' and under 'Access Rights', tick the Multi Companies box, save and refresh
- Go to Accounting > Configuration > Accounts > Accounts and set up four accounts
>> Code: "0", Name: "CompanyB", Internal Type: "view", Account Type "Root/View", Company: "Company B"
>> Code: "1", Name: "Receivables", Internal Type: "Receivable", Account Type "Receivable", Company: "Your Company"
>> Code: "2", Name: "Payables", Internal Type: "Payable", Account Type "Payable", Company: "Your Company"
>> Code: "3", Name: "Expenses", Internal Type: "General", Account Type "Expense", Company: "Your Company"
- Go to Accounting > Customers and create new customer; "TestCustomer", company: "Your company", Accounts Receivable: "1 Receivables", Accounts Payable: "2 Payables"
- Go to Settings > Companies and Create a second company, CompanyB
- Go to Accounting > Configuration > Accounts > Accounts and set up one more account
>> Code: "0", Name: "CompanyB", Internal Type: "view", Account Type "Root/View", Company: "Company B"
- Go to Settings > Users, select 'Adminstrator', change 'Company' to 'CompanyB' and under 'Access Rights', add 'CompanyB' to the list of allowed companies. Save and refresh.
- Create "tester" user, with access to CompanyB only. Under 'Application', give them access as 'Financial Manager' next to Accounting & Finance'. Finally, change their password and log in with that account
- Go to Accounting > Reports > Generic Reports > Aged Partner Balance. Click Print.
- The following error message is displayed:
"Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: Partner, Operation: read)"
From my debugging, this is due to the 'aged.partner.
This may seem like really specific steps to get this problem. But in our larger multi-company database, clashes between partner/account ids is far more common, and means we can never print an aged trial balance for many users.
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | Incomplete → Confirmed |
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP's Framework R&D (openerp-dev-framework) |
Hello Dawn,
Would you please look at the lp:1073087 which is quite similar. The problem comes due to multi-company.
Would you please check the attached branch on lp:1073087 and let us know.
Thanks and waiting for your reply!