Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
5841 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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.

Penulis

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.

Penulis

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

Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Penulis Jawaban Terbai



Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Sep 18
4951
1
Nov 17
4874
4
Mei 24
2833
2
Agu 22
5579
1
Agu 21
5796