如何在ODOOERP中的特定客户(res.partner)下创建Task(project.task)

I am using below code to relate suitable company or contacts while creating task,but fails . Please help me in this.

$result = $models->execute_kw(
    $db, 
    $uid, 
    $password,
    'project.task', 
    'create',
    array(
        array('name'=>"Subject line for task"),
        array('partner_id.id'=>"32"),
        array('partner_id.name', '=', 'Asuzz'),
    ));

Can anybody know what kind of changes i have to made.

your help is really appreciates.

It's enough to tell Odoo the partner ID. The name isn't needed.

array('partner_id'=>32)

Connecting to Odoo 10 it's working for me. { //Creating task

$id = $models->execute_kw($db, $uid, $password,
    'project.task', 'create',
    array(array('name'=>"new task",'project_id'=>7)));

}