Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4126 Переглядів

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
Аватар
Відмінити

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

Автор Найкраща відповідь

Do you have any example?
Regards

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
трав. 19
4194
1
черв. 17
3623
1
лют. 25
1600
0
лист. 24
1405
1
черв. 24
1703