Community mailing list archives

community@mail.odoo.com

Re: Default multicompany errors?

by
Apertoso, Jos De Graeve
- 08/21/2014 07:17:17
Hello Gabriel,

You are getting access errors because of the restrictions that have been configured ( by default ) on the different odoo models.

These restrictions are confgured with "Record Rules".  For many odoo models there are rules that define the criteria that a certain record must fulfil in order to be visible to the user.

The multicompany setup in odoo is thus based on a field "company_id" on a lot of models, and a lot of rules on these models that compare the current company of the user with the company_id field of a record.

The fact that there are many many models and many many rules, makes configuring multi company in odoo quite challenging for users who have no prior experience on this.  If you feel up to the task, now you now where to look :)

Regards,
Jos

Jos De Graeve - Apertoso business ICT


Guido Gezellelaan 16 - B-9800 Deinze - Belgium
 
Direct: +32 9 381 64 51
General:+32 9 381 64 50
Mobile: +32 475 54 68 80
mail/im/skype: Jos.DeGraeve@apertoso.be - apertoso


2014-08-21 10:33 GMT+02:00 Gabriel Franco <gabriel.franco@fileaesir.com>:
Hi everyone,

I'm trying to configure an Odoo multicompany installation. And I've 
found what maybe errors, or maybe I'm not configuring correctly 
something, but I can't figure out what could be wrong.

I have the main company (lets call it Main Company) and another one 
called Second Company. Main Company is, obviously, the parent company of 
Second Company.

I create a new user for the Second Company (and only for it) and give it 
the desired permissions in every module. Once done, when the user logins 
gets an Access Error. Only logging, no action is neccessary. Is an 
Access Error related to the res.partner document type and the Operation 
read.

This error appears repeatedly whenever the new user tries to create, for 
example, a new lead, opportunities, tasks... even having the maximum 
permissions for every module, keeps unable to do anything.

Is there any extra configuration neccessary that I'm missing somehow? 
The steps I took were creating the new company and then the user with 
its permissions (and assigned to the company) nothing else.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe