Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4412 Tampilan

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
Buang

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.

Penulis

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.

Post Terkait Replies Tampilan Aktivitas
2
Apr 22
179
4
Nov 20
31194
1
Agu 19
2736
3
Jul 25
3305
0
Mar 15
3777