OpenERP::OOM::Tutorial::Searching
version 0.43
OpenERP allows logic operators like most database wrappers, just a little stranger. It uses postfix style operators to allow you to or things together. You can also use '&' as an operator.
my $products = $schema->class('Product'); $products->search('|', '|', [ 'default_code', 'ilike', '%' . $query . '%' ], [ 'description', 'ilike', '%' . $query . '%' ], [ 'name', 'ilike', '%' . $query . '%' ]);
For more details see the OpenERP Developer book.
Jon Allen (JJ), <jj@opusvl.com>
This software is copyright (c) 2011-2016 by OpusVL.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install OpenERP::OOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenERP::OOM
CPAN shell
perl -MCPAN -e shell install OpenERP::OOM
For more information on module installation, please visit the detailed CPAN module installation guide.