Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. require_once('ripcord.php');
  3. $url = "http://192.168.99.100:8069";
  4. $db = "bevepe";
  5. $username = "admin";
  6. $password = "test";
  7. $common = ripcord::client("$url/xmlrpc/2/common");
  8. $uid = $common->authenticate($db, $username, $password, array());
  9. $models = ripcord::client("$url/xmlrpc/2/object");
  10. $test=$models->execute_kw($db, $uid, $password, 'product.template', 'write',
  11. array(array(12849), array('company_product'=>array(array(6,0,array(1,3,4))))));
  12. print_r($test)
  13.  
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement