Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3724 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

Use

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

Instead of your code.


Thanks & Regards

Avinash N K

Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
dic 19
5219
3
mar 25
5013
1
feb 25
1750
0
set 21
3098
2
ago 21
3585