Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3719 Представления

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?

Аватар
Отменить
Лучший ответ

Hi,

Use

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

Instead of your code.


Thanks & Regards

Avinash N K

Аватар
Отменить
Автор

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

Related Posts Ответы Просмотры Активность
1
дек. 19
5211
3
мар. 25
5010
1
февр. 25
1748
0
сент. 21
3079
2
авг. 21
3582