Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4054 Vizualizări

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
Imagine profil
Abandonează

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

Autor Cel mai bun răspuns

Do you have any example?
Regards

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mai 19
4123
1
iun. 17
3556
1
feb. 25
1514
0
nov. 24
1359
1
iun. 24
1649