Skip to Content
Menu
This question has been flagged

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
Discard
Author

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 Replies Views Activity
1
Sep 20
7464
4
Jun 20
3959
2
Jul 19
4246
0
May 19
4314
1
Jun 17
3754