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

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
Zrušit

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

Autor Nejlepší odpověď

Do you have any example?
Regards

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
kvě 19
4069
1
čvn 17
3499
1
úno 25
1437
0
lis 24
1284
1
čvn 24
1580