Skip to Content
मेन्यू
This question has been flagged
1 Reply
2669 Views

Hello, I manage to create invoices with the API without any problem. The total is correct but the amount due (residual field) remains at 0 € and I cannot find how to make it take the total amount.


Thank you.

Avatar
Discard

Can you share the solution with us please , i'm stuck with the same issue

Best Answer

Hello,
I was looking at the beginning to modify the status of the invoice directly by updating the status field (I no longer have its name in mind). I finally used the following line in PHP to achieve this:
$models->execute_kw($this->base, $uid, $this->pass, 'account.invoice', 'action_invoice_open', array($result["invoice"]));

Everything is calculated correctly then

Avatar
Discard
Related Posts Replies Views Activity
0
फ़र॰ 21
2203
1
जुल॰ 25
541
2
जुल॰ 25
686
1
जुल॰ 25
1743
3
अप्रैल 25
1761