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

Example:

I have companies A, B, and C under parent #1. I have companies D, E, and F under parent #2.

Product A is sellable to company A and B only. When creating the product I am only able to select a single company. Selecting A will never let B sell that product. Selecting #1 makes the product sellable to A and B, but also to C, which isn't the case.

Scenario 2:

Same setup, but Product B is sellable by company A and D only.

Same question for customers. Customer A is for companies A and B but not C.

Is there any possible way to do this in OpenERP v7?

Avatar
Vazgeç

To do that, you should bypass the ir rule set for company. Have control on form which will say sellable to this. And perform the search / read as admin user not as current user.

Üretici

Thanks. Can you post some more details about how to do something like that? I don't know how to do any of what you said. Thanks.

On your form have some flag kind field. If that is true means it should be accessible to another company. When you view the values, it must be calling search or read method. Overirde search/read method and use the uid=1 (as admin), set the args such as ['sellable_flag' '=' , 'True']. You should be able to get the records from multi companies.

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Nis 22
179
4
Kas 20
31285
1
Ağu 19
2773
3
Tem 25
3333
0
Mar 15
3853