Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7705 Lượt xem


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.


Ảnh đại diện
Huỷ bỏ

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

Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 22
59
1
thg 12 15
4457
2
thg 2 24
4124
2
thg 8 23
10587
2
thg 12 21
5633