Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2073 Widoki

I want api's to create a invoice for subscription in odoo 14 . please help me out

 

Awatar
Odrzuć
Autor

Hi team , hope you are doing good .

i am trying to create invoice through xmlprc in php but whenever i call create api it is giving id but it is  not reflected on odoo invoice dashboard.

 $params = [
            "partner_id"=>11,
            "invoice_date"=>"2021-12-22"
        ];
        $m =  $models->execute_kw($this->odoo->db, $this->odoo->user_id,  $this->odoo->password, 'account.move', 'create', [$params ]);
        $invoice_id = $models->execute_kw(
                   $this->odoo->db, $this->odoo->user_id,  $this->odoo->password,
                    'account.move.line', 'create', array(array(
                        // 'partner_id' =>11,
                        // 'account_id' => 70000,
                        'account_id' => $client['property_account_receivable_id'][0],  
                        // 'type' => 'out_invoice',
                        'journal_id' => '1',
                        // 'state' => 'draft',
                        // 'date_invoice' => "2021-6-12",
                        'product_id' => 1,
                        'move_id' =>  $m,
                        // 'invoice_line_ids' => array(array(0, false, array('name' => "Invoice 2",'product_id'=>1)))
                    )));  
 

Thanks

On 2021-12-13 10:50, Cybrosys Techno Solutions Pvt.Ltd wrote: