Ir al contenido
Menú
Se marcó esta pregunta
7075 Vistas


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.


Avatar
Descartar

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

Autor

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.

Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 22
59
1
dic 15
4057
2
feb 24
2942
2
ago 23
9954
2
dic 21
4604