İçereği Atla
Menü
Bu soru işaretlendi
4 Cevaplar
6592 Görünümler

We are using a multi-company setup, where products and customers are shared between companies. We need this, because the companies are in different countries and have separate accounting.

We buy parts, and assemble them into products that we sell to our customers. We would like to use Odoo's manufacturing and inventory modules to do this.  

The problem we are running into is that Bills of Materials are not shared between companies, so we need to maintain separate records of BoM's for each company. This seems wrong and error-prone, since all the products are the same and have the same BoM's. It also just gives a lot of work with maintaining them.

We discovered today that if you log in as a super-user in Odoo 12, you can actually see the BoM's for the products, even though the BoM's are defined/belong to another company, and you can complete a manufacturing order using those BoM's. This makes it seem like it is a permissioning issue, but we have not been able to find any permissions that guide this. 

So - does anybody know how we solve this? - Is there a way we can share BoM's between companies for products that are already shared?


Avatar
Vazgeç
En İyi Yanıt

As for basic understanding of the question i would suggest you to change record rules of BOM and product.

and Make sure both companies are allow into user account. so user can access another company BOM and product.

Avatar
Vazgeç
Üretici

Both companies are allowed in the user account. The user can see and access products from both companies. Since they are shared. The problem is that the user cannot see BOM's from another company.

I don't understand what you mean by "changing the record rules of BOM" - how do I do that?

mrp.bom and product.tempplate both have multi company rule that you can change from record rules menu form main setting menu.

Üretici

Right, ok - I see that, the rule looks like this:

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

What do I change it to?

All access rights er checked on, and groups are set to global.

Üretici

Ah - I get it, sorry - we just switch the rule off. Brilliant, thank you :)

En İyi Yanıt

Bhaviraj Brahmkshatriya, thanks for the answer.

For those like me, who didn't understand the answer quickly, here is a step-by-step instruction

(my configuration: Odoo Enterprise V12 on own server; I already enabled the checkbox "Share products between multi-companies" and "Share contacts between multi-companies", so I need to share only Bills of materials):

1. Settings -> Activate the developers mode

2. Settings -> Technical -> Security -> Record rules 

3. Search "mrp.bom" as "Object". You will find a line which looks like 

mrp_bom multi-company ...  Bill of material ... ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]

Click on this line.

4. On the top right there will be a green text "On". Put mouse over - it will change to "Switch off". Click on it. Enjoy :)



Avatar
Vazgeç
En İyi Yanıt

A solution to the same problem in Odoo 18 is to simply delete the company name in the Company field of the Bill of Materials (leave the field blank). That way the Bill of Materials becomes available to all companies.

Avatar
Vazgeç
Üretici En İyi Yanıt



Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 18
5605
1
Kas 17
5625
4
May 24
3439
2
Ağu 22
6171
1
Ağu 21
6449