Odoo Help


Why search not working fine with filter qty_available. e.g. "qty_available = 4" ?

on 3/19/14, 8:41 AM 3,627 views

I'm using php and xmlrpc. When I use qty_available, no matter what type of filter using, respond is always all ids.

         new xmlrpcval(array(
                 new xmlrpcval("qty_available","string"), 
                 new xmlrpcval("=","string"),
                 new xmlrpcval("4","string")
       $sock=new xmlrpc_client($url_obj);
       $msg=new xmlrpcmsg('execute');
       $msg->addParam(new xmlrpcval($db, "string"));
       $msg->addParam(new xmlrpcval($uid, "int"));
       $msg->addParam(new xmlrpcval($pwd, "string"));
       $msg->addParam(new xmlrpcval("product.product", "string"));
       $msg->addParam(new xmlrpcval("search", "string"));
       $msg->addParam(new xmlrpcval($args_search, "array"));
       $resp = $sock->send($msg);
       $num = count($ids);
         for ($i=0; $i<$num; $i++)
            echo "--> id: ".$id;

I's working fine when use e.g. "price_extra=150" . Do I have to pass some other attribute like location?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/19/14, 8:41 AM
Seen: 3627 times
Last updated: 3/16/15, 8:10 AM