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


Hello,


I'm making a project and I'm searching for an operator that maybe don't exists for the moment, I want to do something like:

Array field contains Array field: [1,2,3] contains [2,3] = true

I tried to do [1,2,3] in [2,3] but it doesn't work, maybe an extension or module exist for this case?

Thank you in advance.


อวตาร
ละทิ้ง

Do you want to apply this condition in search([]) case?

ผู้เขียน

I want to do something like:

$filters = [1, 2, 3];

$this->container->get(OdooClient::class)->search_read('product.template', [

['valid_product_attribute_value_ids', 'contains', $filters],

];

And the contains should work if 'valid_product_attribute_value_ids' === [1,2,3] or if 'valid_product_attribute_value_ids' === [1,2,3,4,5] for example.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 22
59
1
ธ.ค. 15
4459
2
ก.พ. 24
4126
2
ส.ค. 23
10587
2
ธ.ค. 21
5633