Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5826 Zobrazení

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
Zrušit
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 Odpovědi Zobrazení Aktivita
1
zář 20
7678
4
čvn 20
4159
2
čvc 19
4420
0
kvě 19
4474
1
čvn 17
3949