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

I am using a controller to listen for jsonrpc calls to my odoo server. The call with the right parameters creates a sale.order, accordingly sale.order.line objects, confirms the sale.order and calls so._create_invoices() to get an account.move object. 

Now I want this account.move to be paid. How can I achieve this? I unfortunately do not quite understand how the models account.move, account.move.line, account.payment, account.partial.reconcile and others are connected to each other in a way, that I can manipulate them?

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

I am now constructing a account.payment object from default values with some extra input.

Then I simply call .post() on the account.payment object and the rest is odoo magic.

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

What extra input are that Demming?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
1384
1
thg 5 24
4076
4
thg 2 24
5116
1
thg 4 23
2727
7
thg 2 23
9309