Skip to Content
Menu
This question has been flagged
2 Replies
4062 Views

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
Discard

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

Author Best Answer

Do you have any example?
Regards

Avatar
Discard
Related Posts Replies Views Activity
0
May 19
4133
1
Jun 17
3559
1
Feb 25
1522
0
Nov 24
1363
1
Jun 24
1656