Ir al contenido
Menú
Se marcó esta pregunta
5803 Vistas

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.

Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 20
7653
4
jun 20
4128
2
jul 19
4398
0
may 19
4446
1
jun 17
3926