Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4056 Vues

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
Ignorer

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

Auteur Meilleure réponse

Do you have any example?
Regards

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
mai 19
4125
1
juin 17
3557
1
févr. 25
1515
0
nov. 24
1362
1
juin 24
1650