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

how to create invoices into accounting module from sales module through python using xmlrpc

heres that code that creates sale order and confirms it automatically but it does not create invoices in accounting module.

s = models.execute_kw(db, uid, password, 'sale.order', 'create', [{
'partner_id': 1, 'validity_date': "2021-08-09", 'state': 'sale',
'order_line': [(0, 0, {'product_id': 2, 'product_uom_qty': 2, 'price_unit': 10.00}),
(0, 0, {'product_id': 5, 'product_uom_qty': 4, 'price_unit': 20.00}),
],
}])

models.execute_kw(db, uid, password, 'sale.order', 'write',
[[s], { 'invoice_status': 'invoiced'}])

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 21
3311
1
مايو 25
896
2
نوفمبر 24
2115
4
فبراير 24
4467
4
فبراير 24
12252