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

Hey whenever i make a new quotation form purchase agreement this error pops up and the you have to cancel it and all the process is still running fine.

(Document type: stock.picking.type, Operation: read)

I have a record rule for warehouse restriction as follow

[('id','in', [ p.id for p in user.default_picking_type_ids ])]

if i remove apply for read check then error stops popping but my record rule then stops working and i can see all warehouses in picking type id. Can you tell me what is the problem?

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

Hi,

Use

[('id','in', user.default_picking_type_ids.ids)]

Instead of your code.


Thanks & Regards

Avinash N K

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

Thanks for replying sir! But this still gives me the same error ...can you tell me why ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 19
5218
3
thg 3 25
5011
1
thg 2 25
1749
0
thg 9 21
3090
2
thg 8 21
3583