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

In an add-on module I am trying to create, I would like to calculate the product QOH for the input location in the search box of the tree view. But I do not know how to pass the value to the python code. I am not sure if it's highly complicated or something relatively simple. Any advice?

My finding so far is that the value you input in the search box like below... image description

appears in 'domain' of search_read function in main.py. image description

But I do not know how to pass the value to the python code in the add-on module.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hy,

You have to pass values in the context so that it will appears in the search zone.

To do this, take example on the action that display the customers. The domain is written like this : {"search_default_customer":1} that means that in the search view there is a filter on customer and using this specific syntax wil filter all the partners that have the field customer set to true.

Hope it could help

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 24
27459
0
มี.ค. 15
5562
1
มี.ค. 15
10559
3
มี.ค. 15
8437
45
เม.ย. 23
84660