跳至内容
菜单
此问题已终结
2 回复
3870 查看

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

形象
丢弃
相关帖文 回复 查看 活动
0
5月 19
3972
1
6月 17
3398
1
2月 25
1269
0
11月 24
1183
1
6月 24
1439