Jon Allen > OpenERP-OOM-0.12 > OpenERP::OOM::Tutorial::Searching

Download:
OpenERP-OOM-0.12.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

OpenERP::OOM::Tutorial::Searching

DESCRIPTION ^

Complex Search Terms ^

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.

AUTHOR

Colin Newell <colin@opusvl.com>

COPYRIGHT & LICENSE ^

Copyright (C) 2012 OpusVL

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: