Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4040 Lượt xem

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
Ảnh đại diện
Huỷ bỏ

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

Tác giả Câu trả lời hay nhất

Do you have any example?
Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 19
4118
1
thg 6 17
3546
1
thg 2 25
1504
0
thg 11 24
1349
1
thg 6 24
1638