Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2727 มุมมอง

When I login with admin , I can see all sale order. But with portal user, only see  orders under same company with him. When I check domain for this, I only see following domain.But I think that is not difference between admin and portal.So, how it's work.

domain = [
            ('message_partner_ids', 'child_of', [partner.commercial_partner_id.id]),
            ('state', 'in', ['sale', 'done'])
        ]


I want to filter like even portal user are same company, I want to display his orders only.I add the following domain.I display his order but the main problem is admin can't see all order.How can I do that?

domain = [
            ('message_partner_ids', 'child_of', [partner.commercial_partner_id.id]),
            ('state', 'in', ['sale', 'done']),('partner_id','=',request.env.user.partner_id.id)
        ]

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
1289
1
เม.ย. 25
2117
1
พ.ค. 24
9977
0
มี.ค. 17
2864
1
เม.ย. 25
718