Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
As you said, multicompany have a lot of problems, I've been working with multicompany for about a month and I've encountered and solve many issues.
First thing you need to know is that a lot of Record Rules (Security -> Record Rules) are bad, for example the one in res.partner allow you to see your parents partner but not let you read them, so you need to change it in order to fix this.
I'm using this rule for example and work ok : ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)] .
Second thing, and it looks that this could be your problem, is that user Admin, need to have all the companies in his allowed companies field. This solve other problems for me.
Espero que tengas suerte y te sirva de algo, saludos :D
Jose_M when you say:
... for example the one in res.partner allow you to see your parents partner but not let you read them, so you need to change it in order to fix this.
The rule that you seem to be referring to is a global record access rule:
'name’: 'res_partner: portal/public: read access on my commercial partner’,
'model_id’: [79, 'Partner’],
'domain_force’: "[('id’, 'child_of’, user.commercial_partner_id.id)]",
It seems to be logical than a commercial partner can leave you a contact, but such external user is supposed not to access to your other contacts.
This error can also happen when an internal user belongs to the Portal and Public groups.
The contact access seems to be granted to internal users only.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/21/14, 6:09 AM|
|Seen: 2290 times|
|Last updated: 10/14/15, 6:40 AM|