Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
10105 Lượt xem

i 'am using multi company with non common product catalog ,  so the products seperated in each company , i need to dispaly all product into the parent company ,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Do you mean that users in the "parent company" can see products from all the "child" companies?

If so, I think you can change the Product multi-company Record Rule as follows

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

 EDIT: 

  1. Enable debug mode

  2. Go to Settings / Technical / Security / Record Rules

  3. Search for the "Product multi-company" rule

  4. Edit

  5. Change the Rule definition (domain filter) as above.

  6. Save 

Ảnh đại diện
Huỷ bỏ
Tác giả

actually that i wanna do , your answer made my day, but i don't know where i should write this piece of code, is this filter in view or i should add it in record rule csv,

@Chris TRINGHAM it works like a charm.Thx.

Hi Chris

Thanks for the suggestion, could you suggest simliar for V13.

The issue is : portal user can see the product catelog but can not place an order while I prevent sales if not enough stock @ ecommerce

Thanks

Hi Chris
The problem is that in v14 with this Rule, the users of the child company also see the products of the Parent company!

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 21
2660
1
thg 3 25
1805
1
thg 2 25
3216
2
thg 2 25
2138
1
thg 3 24
1664