Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4437 Widoki

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
Awatar
Odrzuć

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

Autor Najlepsza odpowiedź

Do you have any example?
Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
maj 19
4485
1
cze 17
3958
1
lut 25
2060
0
lis 24
1710
1
cze 24
1983