Skip to Content
Menú
This question has been flagged
2 Respostes
3932 Vistes

Hi,

I'm trying to change the payment status of an Invoice with the PHP API.

I'd like to change it from Open to Paid, but it seems that it's not working as expected. Instead of this it appears:

  • Status: Paid  Open

I'm using this code in order to do it:

$salida = $models->execute_kw($db, $uid, $password, 'account.invoice', 'write',
array(array($item['id']), array('state'=>"paid")));
Am I doing something wrong?

Best regards
Avatar
Descartar

To make invoice in paid state you need to call the method of button "register payment" and pass required values .

Autor Best Answer

Do you have any example?
Regards

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de maig 19
4036
1
de juny 17
3458
1
de febr. 25
1382
0
de nov. 24
1246
1
de juny 24
1535