Skip to Content
Menu
This question has been flagged

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?

Avatar
Discard
Best Answer

Hi,

Use

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

Instead of your code.


Thanks & Regards

Avinash N K

Avatar
Discard
Author

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

Related Posts Replies Views Activity
1
Dec 19
3814
3
Nov 19
3462
0
Sep 21
1146
2
Aug 21
2002
0
Jan 17
2613