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

Now i configured two companies company 1 and company 2, Assign Super admin user to company-1 and normal user to company-2 .

Login into DB through super admin user and make one sale and purchase. Then loged into Db using normal user there is no record for sale order and purchase order(because the normal user didn't made any sale or purchase. ). This is ok 

But when i looked into the reporting menu "sale analysis" Here shows the report for the sale made by the super admin user.  I wonder the same thing is happend in the purchase reporting also. 

How this is happend in the reporting section of the normal user . Any solutions for remove. I there any configuration problem in server.

I use Openerp v7.0 , Installed yesterday in the ubuntu 12.10 system.

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

Hi Ashmsh,

To achieve this, you need to create a record rule for model 'sale.report' as following

[('company_id','child_of',[user.company_id.id])]

 

Regards

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

Hi Hiren Vora. My problem solved. Thanks.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
1956
3
thg 7 25
2376
1
thg 7 25
1630
3
thg 11 24
361
4
thg 9 24
3181