콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2756 화면

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
2598
2
7월 22
4130
1
8월 23
12148
1
10월 22
3522
2
9월 20
8613