Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2730 Представления

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.

Аватар
Отменить

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

Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
февр. 21
2263
1
июл. 25
672
2
июл. 25
779
1
июл. 25
1856
3
апр. 25
1878