İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4704 Görünümler

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?

Avatar
Vazgeç
Üretici En İyi Yanı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.

Avatar
Vazgeç
En İyi Yanıt

What extra input are that Demming?

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 24
1352
1
May 24
4065
4
Şub 24
4882
1
Nis 23
2705
7
Şub 23
9259