تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4739 أدوات العرض

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?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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.

الصورة الرمزية
إهمال
أفضل إجابة

What extra input are that Demming?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 24
1362
1
مايو 24
4071
4
فبراير 24
4931
1
أبريل 23
2711
7
فبراير 23
9274