Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3192 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

You can use create method for manual creation

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
3328
2
thg 7 22
4875
3
thg 7 25
887
1
thg 8 23
13399
1
thg 10 22
4226