跳至内容
菜单
此问题已终结
4 回复
6118 查看

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?


形象
丢弃
最佳答案

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.

形象
丢弃
编写者

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.

编写者

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.

编写者

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

最佳答案

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 :)



形象
丢弃
最佳答案

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.

形象
丢弃
编写者 最佳答案



形象
丢弃
相关帖文 回复 查看 活动
2
9月 18
5204
1
11月 17
5197
4
5月 24
3027
2
8月 22
5791
1
8月 21
6065