Skip to Content
Menú
This question has been flagged
5809 Vistes

I have a create on account.voucher with data:

    'partner_id'=>new xmlrpcval($partner_id, "int"),
    'company_id'=>new xmlrpcval($company_id, "int"),
    'type'=>new xmlrpcval('receipt', "string"),
    'account_id'=>new xmlrpcval(1508, "int"),
    'period_id'=>new xmlrpcval(13, "int"),
    'journal_id'=>new xmlrpcval(8, "int"),
    'amount'=>new xmlrpcval($amount, "double"),
    'move_id'=>new xmlrpcval($move_id, "int"),
    'payment_rate'=>new xmlrpcval(1, "int"),
    'payment_rate_currency_id'=>new xmlrpcval(1, "int"),
    'date'=>new xmlrpcval(date('Y-m-d'), "string"),
    'comment'=>new xmlrpcval('Write-Off',"string"),
    'payment_option'=>new xmlrpcval('without_writeoff', "string")

After that, I'm doing a create on account.voucher.line, with following data:

    'partner_id'=>new xmlrpcval($partner_id, "int"),
    'company_id'=>new xmlrpcval($company_id, "int"),
    'voucher_id'=>new xmlrpcval($voucher_id, "int"),
    'amount'=>new xmlrpcval($amount, "double"),
    'type'=>new xmlrpcval('cr', "string"),
    'name'=>new xmlrpcval($invoice_name, "string"),
    'account_id'=>new xmlrpcval(1004, "int"),
    'move_line_id'=>new xmlrpcval($invoice_id, "int")

 

Now I can see the payment in odoo, but when I want to use the 'proforma_voucher' workflow, nothing happens. Also the 'cancel_voucher' does nothing.

Is there someone with a solution? :)
 

Avatar
Descartar
Autor

is there someone with an idea about this issue?

If you can see the payment in Odoo, can you try to perform the workflow from the web on the payment from the API? See if there is any error.

Related Posts Respostes Vistes Activitat
1
de set. 20
7662
4
de juny 20
4132
2
de jul. 19
4402
0
de maig 19
4452
1
de juny 17
3930