コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2736 ビュー

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]])

アバター
破棄

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

最善の回答

You can use create method for manual creation

アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 22
2581
2
7月 22
4099
1
8月 23
12127
1
10月 22
3512
2
9月 20
8584