İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3654 Görünümler

I am new to odoo and could not find documentation regarding creation of invoice from 
sale order using python (xmlrpc)
Here's my code for creating the quotation and confirming the sale order. Could anyone
please help me with creating invoice
s = models.execute_kw(db, uid, password, 'sale.order', 'create', [{
'partner_id': 1, 'validity_date': "2021-08-09",
'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', 'action_confirm', [[s]])

Avatar
Vazgeç

On CE inoicing module is free, just so you know, you can take a look on that.

En İyi Yanıt

You can use create method for manual creation

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 22
4016
2
Tem 22
5472
3
Tem 25
1676
1
Ağu 23
14723
1
Eki 22
4737