Two uers u1, u2 are create products in to openerp. The user1 created two products p11, p12 and user2 created two products p21,p22. The customers come to openerp website and make sales orders. Let us take two sales orders, SO1,SO2. SO1 has sale order line p11, and SO2 has sale order line p22. When the u1 loged into system, u1 should see the sales order SO1 but not SO2 (because SO1 contains the product p11 created by u1). When the u2 loged into system, u2 should see the sales order SO2 but not SO1 (because SO2 contains the product p22 created by u2).
To filter the sales orders, i am using the concept user groups. I have written a two domains in rules of "sales manager" group. 1. object="sale.order.line" domain= [('product_id.create_uid','=',user.id)] 2. object='sale.order' domain=[('order_line[0].product_id.create_uid','=',user.id)] . But it's not working. Can any one help me please?.
--
Thanks and Regards,
Sambasiva rao,
Cell: +91.9676622023
Skype: samba.guduru2(skype)