I am trying to create sales order, confirm and create regular invoices. I managed to create
the sale order and confirm it but not able to create regular invoices.
Here's the example of my code:
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}),
],}])models.execute_kw(db, uid, password, 'sale.advance.payment.inv', 'create', {
'id': s,
'create_invoices': [{'advance_payment_method': "delivered",}]
})
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
4615
화면
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
1
5월 21
|
3570 | ||
|
|
1
4월 24
|
2746 | ||
|
|
3
10월 23
|
9230 | ||
|
|
1
10월 22
|
4908 | ||
|
Manual Invoice Sequence
해결 완료
|
|
1
9월 21
|
4076 |