write method , for Update , can any one explain these to me ??!
code :-
$models->execute_kw($db, $uid, $password,'sale.order', 'write',array(array(0), array('state'=>'sale')));
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
write method , for Update , can any one explain these to me ??!
code :-
$models->execute_kw($db, $uid, $password,'sale.order', 'write',array(array(0), array('state'=>'sale')));
$models->execute_kw($db, $uid, $password,'sale.order', 'write',array(array(0), array('state'=>'sale')));
$url = <insert server URL>; $db = <insert database name>; $username = "admin"; $password = <insert password for your admin user (default: admin)>;
'sale.order' - module that to perform action (object of module )
'write' - write method (updation)
array(array(ids), - passing record id to update
array('state'=>'sale' - updating state field to 'sale'$models->execute_kw($db, $uid, $password, 'res.partner', 'write', array(array($id), array('name'=>"Newer partner"))); // get record name after having changed it $models->execute_kw($db, $uid, $password, 'res.partner', 'name_get', array(array($id)));
Thank you ,
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
de març 18
|
3849 | ||
|
3
d’ag. 17
|
5374 | ||
|
1
de març 15
|
7049 | ||
|
2
de març 15
|
9946 | ||
|
0
de maig 23
|
1801 |