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

in the code below, I am able to create sale order and confirm it but I want to know how to create an invoice from sale order through python coding (xmlrpc)

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

Thank you


アバター
破棄
関連投稿 返信 ビュー 活動
0
5月 22
1990
1
6月 21
4004
3
9月 25
2828
0
8月 25
418
1
8月 25
2513