Comment 99 for bug 1073087

Revision history for this message
Stephan Levenhagen (slevenhagen) wrote :

If reate a company B in Multi-Company environment with an exisiting company A and user A and
Then switch to company B then go to Settings/configuration/Accounting/Company has check has own chart of accounts
Then install chart of accounts template.

Now set User A created in company A with multi company rights Add company B to its Allowed companies.

Log in as user A and change to company B in Preferences

IF you attempt to create a customer or sale order or purchase order and you will get "Access denied" errors.

Now open partner related to that user A in Sales/Customers. ( This partner A will only appear in company B if the company setting under the Sales & Purchasing table for this partner A is not set to any company).

Open the users partner to edit you will find the Accounts Payable and Accounts Receivable not filled in, Set these fields. Also under the Sales and Purchasing tab set the company field to company B and save. Once you have done this you should then be able to create sales orders purchase orders and partners with out access errors.

Now to again be able to switch companies with user A Again edit partner A related to the user A in the "Customer Form" setting Company back to blank in the Sales & Purchasing. If you don't do this Access Denied will occur.