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

We recently changed from Odoo 8 to Odoo 12. In Odoo 12 we are creating orders automatically by using the external xmlrpc api.

The issue we are facing is when we set the workflow to automatic or we confirm the quotation it gives the sales order the Invoice status "Nothing to Invoice". We need it to be on "To Invoice" for it to create an invoice automatically based on the invoiceable lines.

The sales orders that are confirmed and are on the invoice state "Nothing to Invoice" have all blue coloured sales order lines.

Furthermore, when we add a new random order line by hand to the quotation and then set the quotation to automatic it does generate an invoice.

So what I think is that the settings are correctly set but we need to trigger Odoo with some kind of "onchange" functionality that it will properly register the order lines.

Is there such a trigger that I can use with the external api? Or is there maybe another solution?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

We needed to change on the order lines the value is_delivery to 0.

In Odoo 8 it was alright to place "FALSE".

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 17
5279
3
thg 1 23
8540
1
thg 3 22
6038
1
thg 2 22
6108
1
thg 7 20
9862