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?
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.
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.